mips.h (ISA_HAS_DSP, [...]): New macros.
[official-gcc.git] / gcc / testsuite / gcc.dg / builtins-52.c
blob684fd661de8c5782c5f30ec6d21cc3e1e545b5d6
1 /* { dg-do link } */
2 /* { dg-options "-ffast-math" } */
4 extern void link_error(void);
6 void test(double x, int n)
8 if (__builtin_powi(x,-1.0) != 1.0/x)
9 link_error ();
10 if (__builtin_powi(x,0.0) != 1.0)
11 link_error ();
12 if (__builtin_powi(x,1.0) != x)
13 link_error ();
14 if (__builtin_powi(1.0,n) != 1.0)
15 link_error ();
18 int main()
20 test(7.3, 2);
21 return 0;