Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gcv -mabi=lp64d -mrvv-vector-bits=scalable -Ofast -fno-vect-cost-model" } */
3
4 int a;
5 void b() {
6 long *c = 0;
7 int *d;
8 for (; a; ++a)
9 c[a] = d[-a];
10 }
11
12 /* { dg-final { scan-assembler-times {vrgather} 1 } } */