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 } } */