Skip to content

Commit 22a7f1e

Browse files
committed
Add some temporary test cases
1 parent ce66c73 commit 22a7f1e

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#include "riscv_vector.h"
2+
3+
vint8mf8_t test1(float vs1, vfloat32mf2_t vs2, size_t vl) {
4+
return __riscv_sf_vfnrclip_x_f_qf_i8mf8(vs2, vs1, vl);
5+
}
6+
7+
vint8mf4_t test2(float vs1, vfloat32m1_t vs2, size_t vl) {
8+
return __riscv_sf_vfnrclip_x_f_qf_i8mf4(vs2, vs1, vl);
9+
}
10+
11+
vint8mf2_t test2(float vs1, vfloat32m2_t vs2, size_t vl) {
12+
return __riscv_sf_vfnrclip_x_f_qf_i8mf2(vs2, vs1, vl);
13+
}
14+
15+
vint8m1_t test2(float vs1, vfloat32m4_t vs2, size_t vl) {
16+
return __riscv_sf_vfnrclip_x_f_qf_i8m1(vs2, vs1, vl);
17+
}
18+
19+
vint8m2_t test2(float vs1, vfloat32m8_t vs2, size_t vl) {
20+
return __riscv_sf_vfnrclip_x_f_qf_i8m2(vs2, vs1, vl);
21+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#include "riscv_vector.h"
2+
3+
vint32m1_t test1(vint32m1_t vd, vint8m1_t vs1, vint8mf2_t vs2, size_t vl) {
4+
return __riscv_sf_vqmacc_4x8x4_i32m1(vd, vs1, vs2, vl);
5+
}
6+
7+
vint32m2_t test2(vint32m2_t vd, vint8m1_t vs1, vint8m1_t vs2, size_t vl) {
8+
return __riscv_sf_vqmacc_4x8x4_i32m2(vd, vs1, vs2, vl);
9+
}
10+
11+
vint32m4_t test3(vint32m4_t vd, vint8m1_t vs1, vint8m2_t vs2, size_t vl) {
12+
return __riscv_sf_vqmacc_4x8x4_i32m4(vd, vs1, vs2, vl);
13+
}
14+
15+
vint32m8_t test4(vint32m8_t vd, vint8m1_t vs1, vint8m4_t vs2, size_t vl) {
16+
return __riscv_sf_vqmacc_4x8x4_i32m8(vd, vs1, vs2, vl);
17+
}

0 commit comments

Comments
 (0)