aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/pr68756.c
blob: ddb9789f133a86bd7c22694ac1fc1170520f8b68 (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
/* { dg-do compile } */
/* { dg-options "-O1 -floop-nest-optimize" } */

unsigned int z4, pz;
int nn[2];

static unsigned int
xq (unsigned int dj)
{
  return dj > 1 ? z4 : z4 + dj;
}

void
la (void)
{
  int hd, dl;
  unsigned int hn = 0;

  for (hd = 0; hd < 2; ++hd)
    {
      for (dl = 0; dl < 2; ++dl)
	nn[dl] = 0;
      --hn;
      pz = xq (hn);
    }
}