On 11/4/2026 4:41 PM, Max Chou wrote:
Add disassembler support for the vfwdota.vv instruction from the
Zvfwdota16bf extension.

Signed-off-by: Max Chou <[email protected]>
---

Reviewed-by: Daniel Henrique Barboza <[email protected]>

  disas/riscv-op.c.inc | 1 +
  disas/riscv.c        | 4 ++++
  2 files changed, 5 insertions(+)

diff --git a/disas/riscv-op.c.inc b/disas/riscv-op.c.inc
index ec767ccbf8b..aeb9423f130 100644
--- a/disas/riscv-op.c.inc
+++ b/disas/riscv-op.c.inc
@@ -614,6 +614,7 @@ OP(vfwcvt_rtz_xu_f_v, "vfwcvt.rtz.xu.f.v", rv_codec_v_r, 
rv_fmt_vd_vs2_vm)
  OP(vfwcvt_x_f_v, "vfwcvt.x.f.v", rv_codec_v_r, rv_fmt_vd_vs2_vm)
  OP(vfwcvt_xu_f_v, "vfwcvt.xu.f.v", rv_codec_v_r, rv_fmt_vd_vs2_vm)
  OP(vfwcvtbf16_f_f_v, "vfwcvtbf16.f.f.v", rv_codec_v_r, rv_fmt_vd_vs2_vm)
+OP(vfwdota_vv, "vfwdota.vv", rv_codec_v_r, rv_fmt_vd_vs2_vs1_vm)
  OP(vfwmacc_vf, "vfwmacc.vf", rv_codec_v_r, rv_fmt_vd_fs1_vs2_vm)
  OP(vfwmacc_vv, "vfwmacc.vv", rv_codec_v_r, rv_fmt_vd_vs1_vs2_vm)
  OP(vfwmaccbf16_vf, "vfwmaccbf16.vf", rv_codec_v_r, rv_fmt_vd_fs1_vs2_vm)
diff --git a/disas/riscv.c b/disas/riscv.c
index 2acded0c915..62feb4c653e 100644
--- a/disas/riscv.c
+++ b/disas/riscv.c
@@ -2640,6 +2640,10 @@ static const rv_opcode_data 
*decode_inst_opcode(rv_decode *dec, rv_isa isa)
                  case 39: return &op_vqwdotas_vv;
                  }
              }
+            if (((inst >> 12) & 0b111) == 1 &&
+                ((inst >> 26) & 0b111111) == 36) {
+                return &op_vfwdota_vv;
+            }
              if (((inst >> 25) & 1) == 1 && ((inst >> 12) & 0b111) == 2) {
                  switch ((inst >> 26) & 0b111111) {
                  case 32: return &op_vsm3me_vv;


Reply via email to