OSDN Git Service

PR rtl-optimization/323
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / i386 / pow-1.c
1 /* { dg-do compile } */
2 /* { dg-options "-O -ffast-math" } */
3
4 double test1 (double x)
5 {
6   return __builtin_pow (x, 1./2.);
7 }
8
9 double test2 (double x)
10 {
11   return __builtin_pow (x, 3./2.);
12 }
13
14 double test3 (double x)
15 {
16   return __builtin_pow (x, 5./2.);
17 }
18
19 double test4 (double x)
20 {
21   return __builtin_pow (x, -5./2.);
22 }
23
24 /* { dg-final { scan-assembler-not "call\[ \t\]*pow" } } */