aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/pr86479.c
blob: 7df63546c05af157c72a2c2ad0f27b7a5b0441df (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
/* { dg-do compile } */
/* { dg-options "-O2 -floop-nest-optimize -fnon-call-exceptions -fno-guess-branch-probability -fno-tree-loop-im" } */

__INTPTR_TYPE__ uf;

void
m7 (__INTPTR_TYPE__ *aw, __INTPTR_TYPE__ ws)
{
  __INTPTR_TYPE__ *e5 = &ws;

  if (ws < 1)
    {
      int cq = 0;

      while (cq < 1)
        {
          int *ng;
          int *ud;

          *e5 *= uf < 0;

          for (*ng = 0; *ng < 2; ++*ng)
            {
            }

          ws /= cq;
          *aw *= ws;

          for (*ud = 0; *ud < 2; ++*ud)
            {
            }
        }
    }

  if (ws < 2)
    e5 = &uf;

  *e5 = 0;
}