diff --git a/README.md b/README.md index 8d1501c..451020a 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ int main() |powerpc|`vsx`| |s390x|`zvector`| |loongarch|`lsx` `lasx`| -|risc-v|`i` `m` `a` `f` `d` `c` `v` `zba` `zbb` `zbc` `zbs` `zbkb` `zbkc` `zbkx` `zcb` `zfa` `zfbfmin` `zfh` `zfhmin` `zicond` `zicsr` `zifencei` `zmmul` `zvbb` `zvbc` `zvfh` `zvfhmin` `zvfbfmin` `zvfbfwma` `zvkb` `zvl32b` `zvl64b` `zvl128b` `zvl256b` `zvl512b` `zvl1024b` `xtheadba` `xtheadbb` `xtheadbs` `xtheadcondmov` `xtheadfmemidx` `xtheadfmv` `xtheadmac` `xtheadmemidx` `xtheadmempair` `xtheadsync` `xtheadvdot` `spacemitvmadot` `spacemitvmadotn` `spacemitvfmadot`| +|risc-v|`i` `m` `a` `f` `d` `c` `v` `zba` `zbb` `zbc` `zbs` `zbkb` `zbkc` `zbkx` `zcb` `zfa` `zfbfmin` `zfh` `zfhmin` `zicond` `zicsr` `zifencei` `zmmul` `zvbb` `zvbc` `zvfh` `zvfhmin` `zvfbfmin` `zvfbfwma` `zvkb` `zvl32b` `zvl64b` `zvl128b` `zvl256b` `zvl512b` `zvl1024b` `xtheadba` `xtheadbb` `xtheadbs` `xtheadcondmov` `xtheadfmemidx` `xtheadfmv` `xtheadmac` `xtheadmemidx` `xtheadmempair` `xtheadsync` `xtheadvector` `xtheadvdot` `spacemitvmadot` `spacemitvmadotn` `spacemitvfmadot`| |openrisc| `orbis32` `orbis64` `orfpx32` `orfpx64` `orvdx64` | ## Let's ruapu diff --git a/main.c b/main.c index 19cba96..1ea2887 100644 --- a/main.c +++ b/main.c @@ -182,6 +182,7 @@ int main() PRINT_ISA_SUPPORT(xtheadmemidx) PRINT_ISA_SUPPORT(xtheadmempair) PRINT_ISA_SUPPORT(xtheadsync) + PRINT_ISA_SUPPORT(xtheadvector) PRINT_ISA_SUPPORT(xtheadvdot) PRINT_ISA_SUPPORT(spacemitvmadot) diff --git a/ruapu.h b/ruapu.h index 3813c0e..bbc3a62 100644 --- a/ruapu.h +++ b/ruapu.h @@ -350,7 +350,8 @@ RUAPU_INSTCODE(xtheadmac, 0x20a5150b) // th.mula a0,a0,a0 RUAPU_INSTCODE(xtheadmemidx, 0x1801450b) // th.lbia a0,(sp),#0,#0 RUAPU_INSTCODE(xtheadmempair, 0xe0a1450b) // th.lwd a0,a0,(sp),#0,3 RUAPU_INSTCODE(xtheadsync, 0x0180000b) // th.sync -RUAPU_INSTCODE(xtheadvdot, 0x8000600b) // th.vmaqa.vv v0,v0,v0 +RUAPU_INSTCODE(xtheadvector, 0x32052557) // th.vext.x.v a0,v0,a0 +RUAPU_INSTCODE(xtheadvdot, 0x8200600b) // th.vmaqa.vv v0,v0,v0 RUAPU_INSTCODE(spacemitvmadot, 0xe200312b) // vmadot v2,v0,v0 RUAPU_INSTCODE(spacemitvmadotn, 0xe600b12b) // vmadot3 v2,v0,v1 //vmadot2 vmadot1 @@ -580,6 +581,7 @@ RUAPU_ISAENTRY(xtheadmac) RUAPU_ISAENTRY(xtheadmemidx) RUAPU_ISAENTRY(xtheadmempair) RUAPU_ISAENTRY(xtheadsync) +RUAPU_ISAENTRY(xtheadvector) RUAPU_ISAENTRY(xtheadvdot) RUAPU_ISAENTRY(spacemitvmadot)