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