Merged with mainline at revision 128810.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr17390.c
blob3cf22e6d0bd33f1f6dd17e14077db86f7838bcd6
1 /* { dg-do compile } */
2 /* { dg-require-effective-target ilp32 } */
3 /* { dg-options "-O2 -ffast-math" } */
5 double sgn (double __x)
7 return __x == 0.0 ? 0.0 : (__x > 0.0 ? 1.0 : -1.0);
10 /* { dg-final { scan-assembler-times "fnstsw" 1 } } */