Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr88521.c

raw
1 /* { dg-do compile { target lp64 } } */
2 /* { dg-options "-O2" } */
3 /* { dg-final { scan-assembler-times "movl\[^\n\r]*, %eax|mov\[ \t]*eax," 1 } } */
4 /* { dg-final { scan-assembler-times "movss\[^\n\r]*, %xmm" 1 } } */
5 /* { dg-final { scan-assembler-times "movsd\[^\n\r]*, %xmm" 1 } } */
6 typedef struct
7 {
8 float x;
9 } Float;
10
11 Float __attribute__((ms_abi)) fn1()
12 {
13 Float v;
14 v.x = 3.145F;
15 return v;
16 }
17
18 float __attribute__((ms_abi)) fn2 ()
19 {
20 float v;
21 v = 3.145F;
22 return v;
23 }
24
25 double __attribute__((ms_abi)) fn3 ()
26 {
27 double v;
28 v = 3.145;
29 return v;
30 }