Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/autovec/pr123022.c

raw
1 /* { dg-do run } */
2 /* { dg-require-effective-target rvv_zvl512b_ok } */
3 /* { dg-options "-O3 -march=rv64gcv_zvl512b -mabi=lp64d -mrvv-vector-bits=zvl -fsigned-char" } */
4 unsigned e[2][2];
5 long a;
6 char c[2];
7
8 int
9 main ()
10 {
11 long long b;
12 c[1] = 3;
13 for (unsigned h = 0; h < 2; h++)
14 for (int i = c[0]; i < 5; i += 5)
15 for (int j = 0; j < 219; j++)
16 a = c[h] ? e[h][h] + 3326195747 : 0;
17
18 b = a;
19 if (b != 3326195747)
20 __builtin_abort ();
21 }