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