This commit was manufactured by cvs2svn to create branch
[official-gcc.git] / gcc / testsuite / gcc.dg / builtins-34.c
blob0055f329dd532c7fa9c6ce57f04d4063f11b36bd
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 float exp10f(float);
16 extern float exp2f(float);
17 extern float pow10f(float);
18 extern float expm1f(float);
19 extern long double exp10l(long double);
20 extern long double exp2l(long double);
21 extern long double pow10l(long double);
22 extern long double expm1l(long double);
25 double test1(double x)
27 return exp10(x);
30 double test2(double x)
32 return exp2(x);
35 double test3(double x)
37 return pow10(x);
40 double test4(double x)
42 return expm1(x);
45 float test1f(float x)
47 return exp10f(x);
50 float test2f(float x)
52 return exp2f(x);
55 float test3f(float x)
57 return pow10f(x);
60 float test4f(float x)
62 return expm1f(x);
65 long double test1l(long double x)
67 return exp10l(x);
70 long double test2l(long double x)
72 return exp2l(x);
75 long double test3l(long double x)
77 return pow10l(x);
80 long double test4l(long double x)
82 return expm1l(x);