1 /* { dg-require-effective-target vect_int } */
2 /* { dg-additional-options "-fdump-tree-optimized-details-blocks" } */
9 int ib
[N
] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
11 __attribute__ ((noinline
))
19 /* Multidimensional array. Not aligned: vectorizable. */
20 for (i
= 0; i
< N
; i
++)
22 for (j
= 0; j
< N
; j
++)
28 /* Multidimensional array. Aligned: vectorizable. */
29 for (i
= 0; i
< N
; i
++)
31 for (j
= 0; j
< N
; j
++)
33 ic
[i
][1][1][j
] = ib
[i
];
37 /* Multidimensional array. Not aligned: vectorizable. */
38 for (i
= 0; i
< N
; i
++)
40 for (j
= 0; j
< N
; j
++)
42 id
[i
][1][j
+1] = ib
[i
];
47 for (i
= 0; i
< N
; i
++)
50 for (j
= 0; j
< N
; j
++)
52 if (ia
[i
][1][j
] != ib
[i
])
58 for (i
= 0; i
< N
; i
++)
61 for (j
= 0; j
< N
; j
++)
63 if (ic
[i
][1][1][j
] != ib
[i
])
69 for (i
= 0; i
< N
; i
++)
72 for (j
= 0; j
< N
; j
++)
74 if (id
[i
][1][j
+1] != ib
[i
])
89 /* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" } } */
90 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */