aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr89235.c
blob: 86be27f7704fe5691b1e24b5c92784f9993dffe9 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* { dg-require-effective-target fopenmp } */
/* { dg-options "-S -fopenmp -fsave-optimization-record -ftree-parallelize-loops=2 -fno-tree-vectorize --param ggc-min-expand=0" } */

int a1, dr, xm, ly, zb, g9, il;

long int wt;
unsigned int mq;
int br, e7, rm, t4, jb, ry;

int
fi (void);

int
z5 (int fl)
{
  while (br < 1)
    while (e7 != 0)
      while (mq != 1)
        {
          if (!!fl)
            {
              wt = rm;
              fi ();
            }

          ++mq;
        }

  return 0;
}

void
gg (void)
{
  t4 = rm = z5 (rm);
  jb = z5 (rm);
  ry = fi ();
}

#pragma omp declare simd
void
hl (void)
{
  for (;;)
    {
      gg ();
      gg ();
      gg ();
    }
}

#pragma omp declare simd
int
cw (void)
{
  return 0;
}