]>
Commit | Line | Data |
---|---|---|
1e43cc94 | 1 | /* { dg-do compile { target sqrt_insn } } */ |
b7dce216 | 2 | /* { dg-options "-fdump-tree-sincos -Ofast --param max-pow-sqrt-depth=8" } */ |
1e43cc94 | 3 | /* { dg-additional-options "-mfloat-abi=softfp -mfpu=neon-vfpv4" { target arm*-*-* } } */ |
b7dce216 KT |
4 | |
5 | double | |
6 | foo (double a) | |
7 | { | |
8 | return __builtin_pow (a, -5.875); | |
9 | } | |
10 | ||
11 | double | |
12 | foof (double a) | |
13 | { | |
14 | return __builtin_pow (a, 0.75f); | |
15 | } | |
16 | ||
17 | double | |
18 | bar (double a) | |
19 | { | |
20 | return __builtin_pow (a, 1.0 + 0.00390625); | |
21 | } | |
22 | ||
23 | double | |
24 | baz (double a) | |
25 | { | |
26 | return __builtin_pow (a, -1.25) + __builtin_pow (a, 5.75) - __builtin_pow (a, 3.375); | |
27 | } | |
28 | ||
29 | #define N 256 | |
30 | void | |
31 | vecfoo (double *a) | |
32 | { | |
33 | for (int i = 0; i < N; i++) | |
34 | a[i] = __builtin_pow (a[i], 1.25); | |
35 | } | |
36 | ||
37 | /* { dg-final { scan-tree-dump-times "synthesizing" 7 "sincos" } } */ |