PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / pow-sqrt-synth-1.c
blob4a94325cdb3abcba8869f432ed2416f15f55ecd4
1 /* { dg-do compile { target sqrt_insn } } */
2 /* { dg-options "-fdump-tree-sincos -Ofast --param max-pow-sqrt-depth=8" } */
3 /* { dg-additional-options "-mfloat-abi=softfp -mfpu=neon-vfpv4" { target arm*-*-* } } */
5 double
6 foo (double a)
8 return __builtin_pow (a, -5.875);
11 double
12 foof (double a)
14 return __builtin_pow (a, 0.75f);
17 double
18 bar (double a)
20 return __builtin_pow (a, 1.0 + 0.00390625);
23 double
24 baz (double a)
26 return __builtin_pow (a, -1.25) + __builtin_pow (a, 5.75) - __builtin_pow (a, 3.375);
29 #define N 256
30 void
31 vecfoo (double *a)
33 for (int i = 0; i < N; i++)
34 a[i] = __builtin_pow (a[i], 1.25);
37 /* { dg-final { scan-tree-dump-times "synthesizing" 7 "sincos" } } */