OSDN Git Service

* builtins.def: Defome atan, atanf, atanl, tan, tanf and tanl
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / builtins-4.c
1 /* Copyright (C) 2003  Free Software Foundation.
2
3    Verify that all the binary __builtin_ math functions are
4    recognized by the compiler.
5
6    Written by Roger Sayle, 6th February 2002.  */
7
8 /* { dg-do compile } */
9 /* { dg-final { scan-assembler-not "__builtin_" } } */
10
11 double test1(double x, double y) { return __builtin_pow(x,y); }
12 double test2(double x, double y) { return __builtin_atan2(x,y); }
13 double test3(double x, double y) { return __builtin_fmod(x,y); }
14
15 float test1f(float x, float y) { return __builtin_powf(x,y); }
16 float test2f(float x, float y) { return __builtin_atan2f(x,y); }
17 float test3f(float x, float y) { return __builtin_fmodf(x,y); }
18
19 long double test1l(long double x, long double y)
20 { return __builtin_powl(x,y); }
21 long double test2l(long double x, long double y)
22 { return __builtin_atan2l(x,y); }
23 long double test3l(long double x, long double y)
24 { return __builtin_fmodl(x,y); }
25