aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr116812.c
blob: 3e83c13d94bdb475828971efb5b6f2e5101eaebe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-additional-options "-O2 -fno-tree-dce -fno-tree-dse" } */

int a, b, c, d, e, f[2], g, h;
int k(int j) { return 2 >> a ? 2 >> a : a; }
int main() {
  int i;
  for (; g; g = k(d = 0))
    ;
  if (a)
    b && h;
  for (e = 0; e < 2; e++)
    c = d & 1 ? d : 0;
  for (i = 0; i < 2; i++)
    f[i] = 0;
  return 0;
}