Sign in
gnu
/
gcc
/
4aef14b09557ce072f1269bd8a05fa2b1df0eda2
/
.
/
gcc
/
testsuite
/
gcc.target
/
i386
/
pr17390.c
blob: 9a3d61fcd1110f610d32d7059bf159fd7c51537c [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-O2 -ffast-math -mfpmath=387" } */
double
sgn
(
double
__x
)
{
return
__x
==
0.0
?
0.0
:
(
__x
>
0.0
?
1.0
:
-
1.0
);
}
/* { dg-final { scan-assembler-times "fcom|ftst" 1 } } */