gcc/
[official-gcc.git] / gcc / testsuite / gcc.dg / builtins-58.c
blobcf5a9c2f3cd27aa0559650a01e7e40661d642b16
1 /* { dg-do compile } */
2 /* { dg-options "-O -ffast-math -std=c99" } */
4 #include "builtins-config.h"
6 #ifdef HAVE_C99_RUNTIME
7 double test1 (double x)
9 return __builtin_pow (x, 1./3.);
12 double test2 (double x)
14 return __builtin_pow (x, 4./3.);
17 double test3a (double x)
19 return __builtin_pow (x, 5./3.);
22 double test3b (double x)
24 return __builtin_pow (x, -5./3.);
27 double test4 (double x)
29 return __builtin_pow (x, 7./3.);
31 #endif
33 /* { dg-final { scan-assembler-not "pow" } } */