1 /* Copyright (C) 2003 Free Software Foundation.
3 Verify that built-in math function constant folding of functions
4 with one constant argument is correctly performed by the compiler.
6 Written by Roger Sayle, 30th March 2003. */
9 /* { dg-options "-O2 -ffast-math" } */
11 extern void abort(void);
15 if (pow(x
,-1.0) != 1.0/x
)
18 if (pow(x
,2.0) != x
*x
)
21 if (pow(x
,-2.0) != 1.0/(x
*x
))
24 if (pow(x
,0.5) != sqrt(x
))