| 1 |
#include "riscv_vector.h" |
| 2 |
|
| 3 |
vfloat16m1_t test_vget_v_f16m2_f16m1(vfloat16m2_t src, size_t index) { |
| 4 |
return __riscv_vget_f16m1(src, 0); |
| 5 |
} |
| 6 |
|
| 7 |
vint64m1_t test_vget_v_i64m4_i64m1(vint64m4_t src, size_t index) { |
| 8 |
return __riscv_vget_i64m1(src, 0); |
| 9 |
} |
| 10 |
|
| 11 |
vfloat16m1_t test_vget_v_f16m1x4_f16m1(vfloat16m1x4_t src, size_t index) { |
| 12 |
return __riscv_vget_f16m1(src, 0); |
| 13 |
} |
| 14 |
|
| 15 |
vint8m2_t test_vget_v_i8m2x3_i8m2(vint8m2x3_t src, size_t index) { |
| 16 |
return __riscv_vget_i8m2(src, 0); |
| 17 |
} |
| 18 |
|
| 19 |
vfloat16m2_t test_vset_v_f16m1_f16m2(vfloat16m2_t dest, size_t index, |
| 20 |
vfloat16m1_t value) { |
| 21 |
return __riscv_vset(dest, 0, value); |
| 22 |
} |
| 23 |
|
| 24 |
vfloat64m1x7_t test_vset_v_f64m1_f64m1x7(vfloat64m1x7_t dest, size_t index, |
| 25 |
vfloat64m1_t value) { |
| 26 |
return __riscv_vset(dest, 0, value); |
| 27 |
} |