aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/pr80906.c
blob: ec3840834fc42c2fc8ad893080cf4c88d0759f3e (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
26
27
28
/* { dg-do compile } */
/* { dg-options "-O2 -floop-nest-optimize -fdump-tree-graphite" } */

int qc;

int
ec (int lh[][2])
{
  const int jv = 3;
  int zf, hp, c5 = 0, m3 = 1;

  for (zf = 0; zf < jv; ++zf)
    for (hp = 0; hp < jv; ++hp)
      {
	short int bm = 0;

	for (qc = 0; qc < jv; ++qc)
	  --bm;
	if (bm != 0)
	  --c5;
	lh[hp][0] = 0;
	m3 *= jv;
      }

  return c5 + m3;
}

/* { dg-final { scan-tree-dump "isl AST to Gimple succeeded" "graphite" } } */