view gcc/testsuite/gcc.dg/graphite/pr83255.c @ 131:84e7813d76e9

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

/* { dg-do run } */
/* { dg-options "-O -floop-nest-optimize -fdump-tree-graphite-details" } */

int rx, in;

int
main (void)
{
  const int tj = 3;
  int as[tj];
  static int l4;

  while (l4 < 1)
    {
      for (rx = 0; rx < tj; ++rx)
	{
	  for (in = 0; in < tj; ++in)
	    as[in] = 1;
	  as[rx] = 0;
	}
      ++l4;
    }

  if (as[tj - 1] != 0)
    __builtin_abort ();
}

/* { dg-final { scan-tree-dump "loop nest optimized" "graphite" } } */