]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/pow-sqrt-synth-1.c
replace ISL with isl
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pow-sqrt-synth-1.c
CommitLineData
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
5double
6foo (double a)
7{
8 return __builtin_pow (a, -5.875);
9}
10
11double
12foof (double a)
13{
14 return __builtin_pow (a, 0.75f);
15}
16
17double
18bar (double a)
19{
20 return __builtin_pow (a, 1.0 + 0.00390625);
21}
22
23double
24baz (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
30void
31vecfoo (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" } } */