1 /* Copyright (C) 2002 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, 16th August 2002. */
9 /* { dg-options "-O2 -ffast-math" } */
11 extern void link_error(void);
15 if (sqrt (0.0) != 0.0)
18 if (sqrt (1.0) != 1.0)
28 if (sqrtf (0.0f
) != 0.0f
)
31 if (sqrtf (1.0f
) != 1.0f
)
34 if (expf (0.0f
) != 1.0f
)
37 if (logf (1.0f
) != 0.0f
)
41 if (sqrtl (0.0l) != 0.0l)
44 if (sqrtl (1.0l) != 1.0l)
47 if (expl (0.0l) != 1.0l)
50 if (logl (1.0l) != 0.0l)