1 /* { dg-require-effective-target vect_int } */
2 /* { dg-additional-options "-fdump-tree-optimized-details-blocks" } */
10 __attribute__ ((noinline
))
14 int ib
[M
][M
][N
] = {{{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},
28 {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45},
29 {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45}}};
33 /* Multidimensional array. Aligned. The "inner" dimensions
34 are invariant in the inner loop. Load and store. */
35 for (i
= 0; i
< M
; i
++)
37 for (j
= 0; j
< N
; j
++)
39 ia
[i
][1][j
] = ib
[2][i
][j
];
44 for (i
= 0; i
< M
; i
++)
47 for (j
= 0; j
< N
; j
++)
49 if (ia
[i
][1][j
] != ib
[2][i
][j
])
54 /* Multidimensional array. Aligned. The "inner" dimensions
55 are invariant in the inner loop. Load. */
56 for (i
= 0; i
< M
; i
++)
58 for (j
= 0; j
< N
; j
++)
65 for (i
= 0; i
< M
; i
++)
68 for (j
= 0; j
< N
; j
++)
70 if (ic
[j
] != ib
[2][i
][j
])
85 /* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" } } */
86 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */