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