Fix PR42914 and PR42530.
[gcc.git] / gcc / testsuite / gcc.dg / graphite / pr42914.c
1 /* { dg-options "-O2 -g -ffast-math -fgraphite-identity" } */
2
3 int find_sad_16x16(int *mode)
4 {
5 int current, best;
6 int M1[16][16],M0[4][4][4][4],M3[4],M4[4][4];
7 int i,j,k;
8 int ii,jj;
9
10 for (jj=0;jj<4;jj++)
11 for (ii=0;ii<4;ii++)
12 for (j=0;j<4;j++)
13 for (j=0;j<4;j++)
14 current += abs(M0[i][ii][j][jj]);
15
16 if(current < best)
17 {
18 best = current;
19 *mode = k;
20 }
21 }