* gcc.dg/ucnid-[23456].c: XFAIL on AIX.
[official-gcc.git] / gcc / testsuite / gcc.dg / builtins-34.c
blobf2625d5ef5992002d733bf596bba47fad84c3acd
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)
30 return exp10(x);
33 double test2(double x)
35 return exp2(x);
38 double test3(double x)
40 return pow10(x);
43 double test4(double x)
45 return expm1(x);
48 double test5(double x, int exp)
50 return ldexp(x, exp);
53 float test1f(float x)
55 return exp10f(x);
58 float test2f(float x)
60 return exp2f(x);
63 float test3f(float x)
65 return pow10f(x);
68 float test4f(float x)
70 return expm1f(x);
73 float test5f(float x, int exp)
75 return ldexpf(x, exp);
78 long double test1l(long double x)
80 return exp10l(x);
83 long double test2l(long double x)
85 return exp2l(x);
88 long double test3l(long double x)
90 return pow10l(x);
93 long double test4l(long double x)
95 return expm1l(x);
98 long double test5l(long double x, int exp)
100 return ldexpl(x, exp);