gcc/testsuite/gcc.target/riscv/rvv/base/pr109535.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O3 -march=rv32gcv -mabi=ilp32d" } */ |
| 3 | |
| 4 | #include "riscv_vector.h" |
| 5 | |
| 6 | void foo(void *in1, void *in2, void *in3, void *out, size_t vl) { |
| 7 | vint8m1_t a = __riscv_vle8_v_i8m1(in1, vl); |
| 8 | vint8m1_t b = __riscv_vadd_vx_i8m1 (a, vl, vl); |
| 9 | __riscv_vse8_v_i8m1(out, b, vl); |
| 10 | } |
| 11 |