OSDN Git Service

2006-06-19 Anatoly Sokolov <aesok@post.ru>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr19402-1.c
1 /* { dg-do compile } */
2 /* { dg-options "" } */
3
4 float test_powif(float x)
5 {
6   return __builtin_powif(x, -1)
7          + __builtin_powif(x, 0)
8          + __builtin_powif(x, 1)
9          + __builtin_powif(x, 2);
10 }
11
12 double test_powi(double x)
13 {
14   return __builtin_powi(x, -1)
15          + __builtin_powi(x, 0)
16          + __builtin_powi(x, 1)
17          + __builtin_powi(x, 2);
18 }
19
20 long double test_powil(long double x)
21 {
22   return __builtin_powil(x, -1)
23          + __builtin_powil(x, 0)
24          + __builtin_powil(x, 1)
25          + __builtin_powil(x, 2);
26 }
27
28 /* { dg-final { scan-assembler-not "__builtin_" } } */
29