blob: d47bb716ee7d820627c897be95b5525e79731c92 [file]
/* __builtin_fpclassify must not be expanded into FP comparisons either: a
comparison cannot tell FP_SUBNORMAL from FP_ZERO when the subnormal
operand is flushed to zero, and traps when it is not. */
/* { dg-do compile } */
/* { dg-options "-O2" } */
int
fpclassify_f (float x)
{
return __builtin_fpclassify (0, 1, 4, 3, 2, x);
}
int
fpclassify_d (double x)
{
return __builtin_fpclassify (0, 1, 4, 3, 2, x);
}
/* { dg-final { scan-assembler-not "\tcmpt" } } */