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