2018-01-16 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / no-scevccp-outer-1.c
blob0834fd3d86c6ee2aeaeba7017baea48ec6a4b848
1 /* { dg-do compile } */
3 #define N 40
4 signed short image[N][N];
5 signed short block[N][N];
7 /* memory references in the inner-loop */
9 __attribute__ ((noinline)) unsigned int
10 foo (){
11 int i,j;
12 unsigned int diff = 0;
14 for (i = 0; i < N; i++) {
15 for (j = 0; j < N; j++) {
16 diff += (image[i][j] - block[i][j]);
19 return diff;
22 /* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED" 1 "vect" { xfail *-*-* } } } */