Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/vect/no-scevccp-outer-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 | |
3 #define N 40 | |
4 signed short image[N][N]; | |
5 signed short block[N][N]; | |
6 | |
7 /* memory references in the inner-loop */ | |
8 | |
9 __attribute__ ((noinline)) unsigned int | |
10 foo (){ | |
11 int i,j; | |
12 unsigned int diff = 0; | |
13 | |
14 for (i = 0; i < N; i++) { | |
15 for (j = 0; j < N; j++) { | |
16 diff += (image[i][j] - block[i][j]); | |
17 } | |
18 } | |
19 return diff; | |
20 } | |
21 | |
22 /* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED" 1 "vect" { xfail *-*-* } } } */ |