view gcc/testsuite/gcc.dg/graphite/scop-10.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

void bar (void);

int toto()
{
  int i, j, k;
  int a[100][100];
  int b[200];

  for (i = 1; i < 100; i++)
    {
      for (j = 1; j < 100; j++)
        b[i+j] = b[i+j-1] + 2;

      if (i * 2 == i + 8)
        {
	  for (j = 1; j < 100; j++)
	    b[i+j] = b[i+j-1] + 2;
	  a[i][i] = 2;
	}

      for (k = 1; k < 100; k++)
        b[i+k] = b[i+k-5] + 2;
    }

  return a[3][5] + b[2];
}

/* { dg-final { scan-tree-dump-times "number of SCoPs: 1" 1 "graphite"} } */