File: convert-fp-64.c

package info (click to toggle)
gcc-arm-none-eabi 15%3A12.2.rel1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 959,712 kB
  • sloc: cpp: 3,275,382; ansic: 2,061,766; ada: 840,956; f90: 208,513; makefile: 76,132; asm: 73,433; xml: 50,448; exp: 34,146; sh: 32,436; objc: 15,637; fortran: 14,012; python: 11,991; pascal: 6,787; awk: 4,779; perl: 3,054; yacc: 338; ml: 285; lex: 201; haskell: 122
file content (61 lines) | stat: -rw-r--r-- 2,600 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/* { dg-do compile { target { ! longdouble128 } } } */
/* { dg-options "-O2" } */
/* { dg-require-effective-target dfp } */

#define conv(M,N) mode_##N conv##M##N(mode_##M x) { return x; }

#define mode_sf float
#define mode_df double
#define mode_sd _Decimal32
#define mode_dd _Decimal64
#define mode_td _Decimal128

#define conv1(M) \
	conv(M,sf) conv(M,df) \
	conv(M,sd) conv(M,dd) conv(M,td)
#define conv2 \
	conv1(sf) conv1(df) \
	conv1(sd) conv1(dd) conv1(td)

conv2



/* { dg-final { scan-assembler-times {\mbl\M} 18 { target { ! hard_dfp } } } } */
/* { dg-final { scan-assembler-times {\mbl\M} 13 { target { hard_dfp } } } } */


/* { dg-final { scan-assembler-times {\mbl __dpd_extendsfsd\M} 1 } } */
/* { dg-final { scan-assembler-times {\mbl __dpd_extendsfdd\M} 1 } } */
/* { dg-final { scan-assembler-times {\mbl __dpd_extendsftd\M} 1 } } */
/* { dg-final { scan-assembler-times {\mbl __dpd_truncdfsd\M} 1 } } */
/* { dg-final { scan-assembler-times {\mbl __dpd_extenddfdd\M} 1 } } */
/* { dg-final { scan-assembler-times {\mbl __dpd_extenddftd\M} 1 } } */
/* { dg-final { scan-assembler-times {\mbl __dpd_truncsdsf\M} 1 } } */
/* { dg-final { scan-assembler-times {\mbl __dpd_extendsddf\M} 1 } } */
/* { dg-final { scan-assembler-times {\mbl __dpd_extendsddd2\M} 1 { target { ! dfp } } } } */
/* { dg-final { scan-assembler-times {\mbl __dpd_extendsdtd2\M} 1 { target { ! dfp } } } } */
/* { dg-final { scan-assembler-times {\mbl __dpd_truncddsf\M} 1 } } */
/* { dg-final { scan-assembler-times {\mbl __dpd_truncdddf\M} 1 } } */
/* { dg-final { scan-assembler-times {\mbl __dpd_truncddsd2\M} 1 { target { ! dfp } } } } */
/* { dg-final { scan-assembler-times {\mbl __dpd_extendddtd2\M} 1 { target { ! dfp } } } } */
/* { dg-final { scan-assembler-times {\mbl __dpd_trunctdsf\M} 1 } } */
/* { dg-final { scan-assembler-times {\mbl __dpd_trunctddf\M} 1 } } */
/* { dg-final { scan-assembler-times {\mbl __dpd_trunctdsd2\M} 1 } } */
/* { dg-final { scan-assembler-times {\mbl __dpd_trunctddd2\M} 1 { target { ! dfp } } } } */


/* { dg-final { scan-assembler-times {\mfrsp|xsrsp\M} 1 } } */


/* { dg-final { scan-assembler-times {\mfmr\M} 0 { target { ! hard_dfp } } } } */
/* { dg-final { scan-assembler-times {\mfmr\M} 1 { target { hard_dfp } } } } */



/* { dg-final { scan-assembler-times {\mdrsp\M} 1 { target { hard_dfp } } } } */
/* { dg-final { scan-assembler-times {\mdrdpq\M} 1 { target { hard_dfp } } } } */
/* { dg-final { scan-assembler-times {\mdctdp\M} 2 { target { hard_dfp } } } } */
/* { dg-final { scan-assembler-times {\mdctqpq\M} 2 { target { hard_dfp } } } } */