1 /* Copyright (C) 2003 Free Software Foundation.
3 Verify that built-in math function constant folding of constant
4 arguments is correctly performed by the by the compiler.
6 Written by Roger Sayle, 30th March 2003. */
9 /* { dg-options "-O2 -ffast-math" } */
11 extern void link_error(void);
15 if (pow (x, 1.0) != x)
17 if (tan (atan (x)) != x)
23 if (powf (x, 1.0f) != x)
25 if (tanf (atanf (x)) != x)
29 void testl(long double x)
31 if (powl (x, 1.0l) != x)
33 if (tanl (atanl (x)) != x)