1 /* Copyright (C) 2004 Free Software Foundation.
3 Check that exp10, exp10f, exp10l, exp2, exp2f, exp2l, pow10, pow10f,
4 pow10l, expm1, expm1f and expm1l built-in functions compile.
6 Written by Uros Bizjak, 13th February 2004. */
8 /* { dg-do compile } */
9 /* { dg-options "-O2 -ffast-math" } */
11 extern double exp10(double);
12 extern double exp2(double);
13 extern double pow10(double);
14 extern double expm1(double);
15 extern double ldexp(double, int);
16 extern float exp10f(float);
17 extern float exp2f(float);
18 extern float pow10f(float);
19 extern float expm1f(float);
20 extern float ldexpf(float, int);
21 extern long double exp10l(long double);
22 extern long double exp2l(long double);
23 extern long double pow10l(long double);
24 extern long double expm1l(long double);
25 extern long double ldexpl(long double, int);
28 double test1(double x
)
33 double test2(double x
)
38 double test3(double x
)
43 double test4(double x
)
48 double test5(double x
, int exp
)
73 float test5f(float x
, int exp
)
75 return ldexpf(x
, exp
);
78 long double test1l(long double x
)
83 long double test2l(long double x
)
88 long double test3l(long double x
)
93 long double test4l(long double x
)
98 long double test5l(long double x
, int exp
)
100 return ldexpl(x
, exp
);