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