mips.h (ISA_HAS_DSP, [...]): New macros.
[official-gcc.git] / gcc / testsuite / gcc.dg / builtins-47.c
blobb25ee1b9958911deaa0231842859294ba9feb027
1 /* { dg-do run } */
2 /* { dg-options "-ffast-math -fdump-tree-gimple" } */
4 extern double sqrt (double);
5 extern double pow (double, double);
6 extern void abort (void);
8 int main ()
10 double x = -1.0;
11 if (sqrt (pow (x, 2)) != 1.0)
12 abort();
13 if (sqrt (x*x) != 1.0)
14 abort();
15 return 0;
18 /* { dg-final { scan-tree-dump-times "sqrt" 0 "gimple" } } */
19 /* { dg-final { scan-tree-dump-times "pow" 0 "gimple" } } */
20 /* { dg-final { cleanup-tree-dump "gimple" } } */