Skip to content

Commit

Permalink
Add some temporary test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
yulong18 committed Oct 29, 2024
1 parent ce66c73 commit 22a7f1e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
21 changes: 21 additions & 0 deletions gcc/testsuite/gcc.target/riscv/rvv/sf_vfnrclip.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#include "riscv_vector.h"

vint8mf8_t test1(float vs1, vfloat32mf2_t vs2, size_t vl) {
return __riscv_sf_vfnrclip_x_f_qf_i8mf8(vs2, vs1, vl);
}

vint8mf4_t test2(float vs1, vfloat32m1_t vs2, size_t vl) {
return __riscv_sf_vfnrclip_x_f_qf_i8mf4(vs2, vs1, vl);
}

vint8mf2_t test2(float vs1, vfloat32m2_t vs2, size_t vl) {
return __riscv_sf_vfnrclip_x_f_qf_i8mf2(vs2, vs1, vl);
}

vint8m1_t test2(float vs1, vfloat32m4_t vs2, size_t vl) {
return __riscv_sf_vfnrclip_x_f_qf_i8m1(vs2, vs1, vl);
}

vint8m2_t test2(float vs1, vfloat32m8_t vs2, size_t vl) {
return __riscv_sf_vfnrclip_x_f_qf_i8m2(vs2, vs1, vl);
}
17 changes: 17 additions & 0 deletions gcc/testsuite/gcc.target/riscv/rvv/sf_vqmacc.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include "riscv_vector.h"

vint32m1_t test1(vint32m1_t vd, vint8m1_t vs1, vint8mf2_t vs2, size_t vl) {
return __riscv_sf_vqmacc_4x8x4_i32m1(vd, vs1, vs2, vl);
}

vint32m2_t test2(vint32m2_t vd, vint8m1_t vs1, vint8m1_t vs2, size_t vl) {
return __riscv_sf_vqmacc_4x8x4_i32m2(vd, vs1, vs2, vl);
}

vint32m4_t test3(vint32m4_t vd, vint8m1_t vs1, vint8m2_t vs2, size_t vl) {
return __riscv_sf_vqmacc_4x8x4_i32m4(vd, vs1, vs2, vl);
}

vint32m8_t test4(vint32m8_t vd, vint8m1_t vs1, vint8m4_t vs2, size_t vl) {
return __riscv_sf_vqmacc_4x8x4_i32m8(vd, vs1, vs2, vl);
}

0 comments on commit 22a7f1e

Please sign in to comment.