Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -march=rv64gcv_zvl256b -mabi=lp64d -mrvv-vector-bits=zvl" } */
3
4 long a;
5 short b[60000];
6 short c[20];
7 int main() {
8 for (short d = 0; d < 20; d += 3) {
9 c[d] = 0;
10 for (int e = 0; e < 20; e += 2)
11 for (int f = 1; f < 20; f += 2)
12 a += (unsigned)b[f + e];
13 }
14 if (a != 0)
15 __builtin_abort ();
16 }
17
18 /* { dg-final { scan-assembler-times "vsetivli\tzero,1" 0 } } */