Debian Codegraph @

gcc/testsuite/gcc.target/arm/neon-recip-div-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_neon_ok } */
3 /* { dg-options "-O3 -freciprocal-math -fno-unsafe-math-optimizations -save-temps" } */
4 /* { dg-add-options arm_neon } */
5
6 int *a;
7 int n;
8 void b() {
9 int c;
10 for (c = 0; c < 100000; c++)
11 a[c] = (float)c / n;
12 }
13 /* We should not ICE, or get a vectorized reciprocal instruction when unsafe
14 math optimizations are disabled. */
15 /* { dg-final { scan-assembler-not "vrecpe\\.f32\\t\[qd\].*" } } */
16 /* { dg-final { scan-assembler-not "vrecps\\.f32\\t\[qd\].*" } } */