Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr19402-1.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
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 |