Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-outer-1b.c
blobe093d0ea3653dc20ec2d372e71d217f3b250f367
1 /* { dg-do compile } */
3 #define N 40
4 signed short image[N][N];
5 signed short block[N][N];
6 signed short out[N];
8 /* Outer-loop cannot get vectorized because of non-consecutive access. */
10 void
11 foo (){
12 int i,j;
13 int diff;
15 for (i = 0; i < N; i++) {
16 diff = 0;
17 for (j = 0; j < N; j+=4) {
18 diff += (image[i][j] - block[i][j]);
20 out[i]=diff;
24 /* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED" 1 "vect" { xfail *-*-* } } } */
25 /* { dg-final { scan-tree-dump-times "strided access in outer loop" 1 "vect" } } */
26 /* { dg-final { cleanup-tree-dump "vect" } } */