PR tree-optimization/84740
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-alias-check-7.c
blob812349de914d56850cf55d594ccacdf77b108284
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
4 #define N 16
6 struct s { int x[N]; };
8 void
9 f1 (struct s *a, struct s *b)
11 for (int i = 0; i < N; ++i)
12 a->x[i] += b->x[N - i - 1];
15 /* { dg-final { scan-tree-dump {checking that [^\n]* and [^\n]* have different addresses} "vect" } } */
16 /* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" { target { vect_perm && vect_element_align } } } } */