1 /* { dg-do compile } */
4 signed short image
[N
][N
];
5 signed short block
[N
][N
];
8 /* Outer-loop cannot get vectorized because of non-consecutive access. */
15 for (i
= 0; i
< N
; i
++) {
17 for (j
= 0; j
< N
; j
+=4) {
18 diff
+= (image
[i
][j
] - block
[i
][j
]);
24 /* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED" 1 "vect" { xfail *-*-* } } } */
25 /* { dg-final { scan-tree-dump-times "grouped access in outer loop" 1 "vect" { target { ! vect_multiple_sizes } } } } */
26 /* { dg-final { scan-tree-dump-times "grouped access in outer loop" 2 "vect" { target vect_multiple_sizes } } } */
27 /* { dg-final { cleanup-tree-dump "vect" } } */