Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/base/rvv-vector-bits-4.c

raw
1 /* Test that we do not have error when compile */
2 /* { dg-do compile } */
3 /* { dg-options "-march=rv64gcv_zvl128b -mabi=lp64 -mrvv-vector-bits=scalable -O3" } */
4
5 void test_rvv_vector_bits_zvl (int *a, int *b, int *out)
6 {
7 for (int i = 0; i < 8; i++)
8 out[i] = a[i] + b[i];
9 }