1 /* { dg-require-effective-target vect_int } */
2 /* { dg-require-effective-target vect_perm } */
6 void __attribute__((noipa
))
7 foo (int * __restrict__ a
, int * __restrict__ b
, int * __restrict__ c
)
11 for (int i
= 0; i
< 64; i
+=2)
26 for (int i
= 0; i
< 64; ++i
)
29 __asm__
volatile ("" ::: "memory");
34 for (int i
= 2; i
< 64; i
+=2)
35 if (b
[i
] != a
[i
] - a
[i
-2]
36 || b
[i
+1] != a
[i
+1] - a
[i
-1])
38 if (b
[0] != -7 || b
[1] != -6)
43 /* { dg-final { scan-tree-dump "vectorized 1 loops in function" "vect" } } */