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 link_error(void);
13 extern int signbit(double);
14 extern int signbitf(float);
15 extern int signbitl(long double);
19 if (signbit (1.0) != 0)
21 if (signbit (-2.0) == 0)
24 if (signbitf (1.0f
) != 0)
26 if (signbitf (-2.0f
) == 0)
29 if (signbitl (1.0l) != 0)
31 if (signbitl (-2.0f
) == 0)