1 /* Test pattern div<mode>3. */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target arm_neon_ok } */
4 /* { dg-require-effective-target vect_hw_misalign } */
5 /* { dg-options "-O3 -ftree-vectorize -funsafe-math-optimizations -fdump-tree-vect-details -fno-reciprocal-math" } */
6 /* { dg-add-options arm_neon } */
7
8 void
9 foo (int len, float * __restrict p, float *__restrict x)
10 {
11 len = len & ~31;
12 for (int i = 0; i < len; i++)
13 p[i] = p[i] / x[i];
14 }
15
16 /* { dg-final { scan-tree-dump-not "vectorized 1 loops" "vect" } } */