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};
16 /* Multidimensional array. Not aligned: vectorizable. */
17 for (i
= 0; i
< N
; i
++)
19 for (j
= 0; j
< N
; j
++)
25 /* Multidimensional array. Aligned: vectorizable. */
26 for (i
= 0; i
< N
; i
++)
28 for (j
= 0; j
< N
; j
++)
30 ic
[i
][1][1][j
] = ib
[i
];
34 /* Multidimensional array. Not aligned: vectorizable. */
35 for (i
= 0; i
< N
; i
++)
37 for (j
= 0; j
< N
; j
++)
39 id
[i
][1][j
+1] = ib
[i
];
44 for (i
= 0; i
< N
; i
++)
46 for (j
= 0; j
< N
; j
++)
48 if (ia
[i
][1][j
] != ib
[i
])
54 for (i
= 0; i
< N
; i
++)
56 for (j
= 0; j
< N
; j
++)
58 if (ic
[i
][1][1][j
] != ib
[i
])
64 for (i
= 0; i
< N
; i
++)
66 for (j
= 0; j
< N
; j
++)
68 if (id
[i
][1][j
+1] != ib
[i
])
83 /* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" } } */
84 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */
85 /* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 2 "vect" } } */
86 /* { dg-final { cleanup-tree-dump "vect" } } */