aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr97849.c
blob: 57a31e316a248be1aa5d27efe6241eff9aec2101 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-O1 -ftree-vectorize" } */
/* { dg-additional-options "-march=armv8.2-a+sve" { target aarch64*-*-* } } */

int a, b, c;

int g() {
  char i = 0;
  for (c = 0; c <= 8; c++)
    --i;

  while (b) {
    _Bool f = i <= 0;
    a = (a == 0) ? 0 : f / a;
  }
}