aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr19402-1.c
blob: 866ac63cb7e961bf04154df1338f8036f81a875f (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
25
26
27
28
29
/* { dg-do compile } */
/* { dg-options "" } */

float test_powif(float x)
{
  return __builtin_powif(x, -1)
	 + __builtin_powif(x, 0)
	 + __builtin_powif(x, 1)
	 + __builtin_powif(x, 2);
}

double test_powi(double x)
{
  return __builtin_powi(x, -1)
	 + __builtin_powi(x, 0)
	 + __builtin_powi(x, 1)
	 + __builtin_powi(x, 2);
}

long double test_powil(long double x)
{
  return __builtin_powil(x, -1)
	 + __builtin_powil(x, 0)
	 + __builtin_powil(x, 1)
	 + __builtin_powil(x, 2);
}

/* { dg-final { scan-assembler-not "__builtin_" } } */