view gcc/testsuite/gcc.dg/graphite/pr42914.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-options "-O2 -g -ffast-math -fgraphite-identity" } */

int abs (int);

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;
    }
}