PR target/83368
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / ssefn-1.c
blob6eabb5b3c3bacad9ff9e967a7033fd6495b859c6
1 /* Test argument passing with SSE and local functions
2 Written by Paolo Bonzini, 25 January 2005 */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target ia32 } */
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-skip-if "" { *-*-* } { "-march=*" } { "-march=i386" } } */
11 /* { dg-options "-O2 -march=i386 -msse -mno-sse2 -mfpmath=sse -fno-inline" } */
13 static float xs (void)
15 return 3.14159265;
18 float ys (float a)
20 return xs () * a;
23 static double xd (void)
25 return 3.1415926535;
28 double yd (double a)
30 return xd () * a;