1 /* Copyright (C) 2004 Free Software Foundation.
3 Check that constant folding of signbit, signbitf and signbitl math
4 functions doesn't break anything and produces the expected results.
6 Written by Roger Sayle, 28th January 2004. */
9 /* { dg-options "-O2" } */
11 extern void abort(void);
13 extern int signbit(double);
14 extern int signbitf(float);
15 extern int signbitl(long double);
27 int testl (long double x
)
42 if (testf (0.0f
) != 0)
44 if (testf (1.0f
) != 0)
46 if (testf (-2.0f
) == 0)
49 if (testl (0.0l) != 0)
51 if (testl (1.0l) != 0)
53 if (testl (-2.0l) == 0)