summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/block-pr47654.c
blob: 9cdeb0c35795b5f2a921cefeff6bc0ec79fdff43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
int a[128][40];

void __attribute__ ((noinline, noclone))
foo (void)
{
  int i, j;
  for (i = 0; i < 40; i++)
    for (j = 0; j < 128; j++)
      a[j][i] = 4;
}

int
main ()
{
  int i, j;
  foo ();
  for (i = 0; i < 40; i++)
    for (j = 0; j < 128; j++)
      if (a[j][i] != 4)
	__builtin_abort ();
  return 0;
}

/* { dg-final { scan-tree-dump-not "will be loop blocked" "graphite" } } */
/* { dg-final { cleanup-tree-dump "graphite" } } */