1 /* { dg-require-effective-target vect_int } */
12 int ib
[M
][M
][N
] = {{{0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45},
13 {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45},
14 {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45},
15 {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45}},
16 {{0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45},
17 {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45},
18 {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45},
19 {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45}},
20 {{0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45},
21 {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45},
22 {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45},
23 {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45}},
24 {{0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45},
25 {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45},
26 {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45},
27 {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45}}};
31 /* Multidimensional array. Aligned. The "inner" dimensions
32 are invariant in the inner loop. Load and store. */
33 for (i
= 0; i
< M
; i
++)
35 for (j
= 0; j
< N
; j
++)
37 ia
[i
][1][j
] = ib
[2][i
][j
];
42 for (i
= 0; i
< M
; i
++)
44 for (j
= 0; j
< N
; j
++)
46 if (ia
[i
][1][j
] != ib
[2][i
][j
])
51 /* Multidimensional array. Aligned. The "inner" dimensions
52 are invariant in the inner loop. Load. */
53 for (i
= 0; i
< M
; i
++)
55 for (j
= 0; j
< N
; j
++)
62 for (i
= 0; i
< M
; i
++)
64 for (j
= 0; j
< N
; j
++)
66 if (ic
[j
] != ib
[2][i
][j
])
81 /* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" } } */
82 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */
83 /* { dg-final { cleanup-tree-dump "vect" } } */