1 /* { dg-require-effective-target vect_int } */
11 int ib
[N
] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
14 /* Multidimensional array. Aligned. The "inner" dimensions
15 are invariant in the inner loop. Store. */
16 for (i
= 0; i
< N
; i
++)
18 for (j
= 0; j
< N
; j
++)
20 ia
[i
][1][j
+8] = ib
[i
];
25 for (i
= 0; i
< N
; i
++)
27 for (j
= 0; j
< N
; j
++)
29 if (ia
[i
][1][j
+8] != ib
[i
])
34 /* Multidimensional array. Aligned. The "inner" dimensions
35 are invariant in the inner loop. Vectorizable, but the
36 vectorizer detects that everything is invariant and that
37 the loop is better left untouched. (it should be optimized away). */
38 for (i
= 0; i
< N
; i
++)
40 for (j
= 0; j
< N
; j
++)
47 for (i
= 0; i
< N
; i
++)
49 for (j
= 0; j
< N
; j
++)
51 if (ia
[i
][1][8] != ib
[i
])
67 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
68 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */
69 /* { dg-final { cleanup-tree-dump "vect" } } */