PR tree-optimization/24964
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / 387-10.c
blob150515b2a82bec6482dab2256b403d2a43b93ebf
1 /* PR tree-optimization/24964 */
2 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
3 /* { dg-options "-O2 -mfpmath=387" } */
5 double fabs(double x);
7 double test1(double x)
9 double t = fabs(x);
10 return t*t;
13 double test2(double x)
15 double t = -x;
16 return t*t;
19 /* { dg-final { scan-assembler-not "fchs" } } */
20 /* { dg-final { scan-assembler-not "fabs" } } */