summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pow-1.c
blob: 2e1ac61bd7907af889eb2b99b7ff26adbd23c286 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* { dg-do compile } */
/* { dg-options "-O -ffast-math" } */

double test1 (double x)
{
  return __builtin_pow (x, 1./2.);
}

double test2 (double x)
{
  return __builtin_pow (x, 3./2.);
}

double test3 (double x)
{
  return __builtin_pow (x, 5./2.);
}

double test4 (double x)
{
  return __builtin_pow (x, -5./2.);
}

/* { dg-final { scan-assembler-not "call\[ \t\]*pow" } } */