Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/base/vxrm-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gcv -mabi=lp64d -O3" } */
3
4 #include "riscv_vector.h"
5
6 void f (void * in, void *out, int32_t x)
7 {
8 vint32m1_t v = __riscv_vle32_v_i32m1 (in, 4);
9 vint32m1_t v2 = __riscv_vle32_v_i32m1_tu (v, in, 4);
10 vint32m1_t v3 = __riscv_vaadd_vx_i32m1 (v2, 0, x, 4); /* { dg-error {argument 3 of '__riscv_vaadd_vx_i32m1' must be an integer constant expression} } */
11 __riscv_vse32_v_i32m1 (out, v3, 4);
12 }