OSDN Git Service

0279a553346a23c50721e4be7303617ad57aa3f3
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / i386 / ssefn-1.c
1 /* Test argument passing with SSE and local functions
2    Written by Paolo Bonzini, 25 January 2005 */
3
4 /* { dg-do compile } */
5 /* { dg-require-effective-target ilp32 } */
6 /* { dg-final { scan-assembler "movss" } } */
7 /* { dg-final { scan-assembler "mulss" } } */
8 /* { dg-final { scan-assembler-not "movsd" } } */
9 /* { dg-final { scan-assembler-not "mulsd" } } */
10 /* { dg-options "-O2 -march=i386 -msse -mfpmath=sse -fno-inline" } */
11
12 static float xs (void)
13 {
14   return 3.14159265;
15 }
16
17 float ys (float a)
18 {
19   return xs () * a;
20 }
21
22 static double xd (void)
23 {
24   return 3.1415926535;
25 }
26
27 double yd (double a)
28 {
29   return xd () * a;
30 }