PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-outer-1a-big-array.c
blob98dfcfbc101a3bb9296fb1eefd83f3acd434ad64
1 /* { dg-do compile } */
3 #define N 256
4 signed short image[N][N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
5 signed short block[N][N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
7 /* Can't do outer-loop vectorization because of non-consecutive access. */
9 int
10 foo (){
11 int i,j;
12 int diff = 0;
14 for (i = 0; i < N; i++) {
15 for (j = 0; j < N; j+=8) {
16 diff += (image[i][j] - block[i][j]);
19 return diff;
22 /* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED" 1 "vect" { xfail *-*-* } } } */
23 /* { dg-final { scan-tree-dump-times "grouped access in outer loop" 1 "vect" } } */