forked from riscvarchive/riscv-gcc
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |