1 /* Copyright (C) 2003 Free Software Foundation.
3 Verify that constant folding comparisons against built-in math functions
4 don't cause any problems for the compiler, and produce expected results.
6 Written by Roger Sayle, 15th March 2003. */
9 /* { dg-options "-O2 -ffast-math" } */
13 extern void abort (void);
14 extern double sqrt (double);
18 return sqrt(x
) < -9.0;
23 return sqrt(x
) > -9.0;
38 return sqrt(x
) < DBL_MAX
;
43 return sqrt(x
) > DBL_MAX
;