aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr120922.c
blob: 1a7247a4b2f510eee682d123ee7814937ede1a4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-require-effective-target vect_int } */
/* { dg-additional-options "-fsigned-char -fno-strict-aliasing -fwrapv" } */
/* { dg-additional-options "-march=rv64gcv_zvl1024b -mrvv-vector-bits=zvl -mrvv-max-lmul=m8 -O3" { target { riscv_v } } } */

char g;
unsigned char h;
int i[9][6];
int main() {
  int k[5];
  if (g)
    goto l;
  for (; h <= 5; h++)
    i[0][h] = *k;
l:
  return 0;
}

/* { dg-final { scan-tree-dump "loop vectorized" "vect" { target riscv_v } } } */