Merge from mainline
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / sselibm-3.c
blob76c1134c58ee064d054f3ca30d408f2eba7bca1b
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -msse2 -mfpmath=sse -msselibm" } */
3 /* { dg-require-effective-target ilp32 } */
5 double sin(double);
6 double (*mysin)(double) = sin;
8 double f1(double x)
10 return sin(x);
13 double f2(double x)
15 /* Verify we do not expand the following call to __libm_sse2_sin. */
16 return (*mysin)(x);
19 /* { dg-final { scan-assembler-times "__libm_sse2_sin" 1 } } */