aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr110582.c
blob: 6607cf5c895effaebdaed87f64fd8008adf973f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-vrp2" } */
/* { dg-require-effective-target int32plus } */

int a, b;
int main() {
  char c = a = 0;
  for (; c != -3; c++) {
    int d = 2;
    d ^= 2 && a;
    b = a == 0 ? d : d / a;
    a = b;
  }
  for (; (1 + 95 << 24) + b + 1 + 686658714L + b - 2297271457;)
    ;
}

/* { dg-final { scan-tree-dump-not "Folding predicate" "vrp2" } } */