2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / sseregparm-3.c
blob9ee82af44aec75be3018b4e1ba2f7a542a31a760
1 /* { dg-do compile } */
2 /* { dg-options "-msse2 -O2" } */
3 /* { dg-require-effective-target ilp32 } */
5 /* Make sure we know that mysinfp returns in %xmm0. */
7 double __attribute__((sseregparm)) mysin(double x);
8 double __attribute__((sseregparm)) (*mysinfp)(double) = mysin;
9 double bar(double x)
11 return 1.0+mysinfp(x);
14 /* { dg-final { scan-assembler "fldl" } } */