summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/ifc-pr71683.c
blob: 851be37e48c361dd5cde9aa055f6ad434bb1ec8c (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
/* { dg-do compile } */
/* { dg-options "-Ofast" { target *-*-* } } */

short unsigned int ve;

void
u1 (void)
{
  int oq = 0;

  while (ve != 0)
    {
      int j4, w7 = oq;

      oq = 0 / oq;
      ve %= oq;
      j4 = ve ^ 1;
      ve ^= oq;
      if (j4 != 0 ? j4 : ve)
        oq = ve;
      else
        if (w7 != 0)
          oq = ve;
    }
}