On Thu,  5 Nov 2026 03:41:33 +0800 Max Chou <[email protected]> wrote:

> Adds support to disassemble Zvfqwdota8f instructions.
> - vfqwdota.vv
> - vfqwdota.alt.vv
> 
> Signed-off-by: Max Chou <[email protected]>
Reviewed-by: Chao Liu <[email protected]>

Thanks,
Chao
> ---
>  disas/riscv-op.c.inc | 2 ++
>  disas/riscv.c        | 9 ++++++---
>  2 files changed, 8 insertions(+), 3 deletions(-)
> 
> diff --git a/disas/riscv-op.c.inc b/disas/riscv-op.c.inc
> index aeb9423f130..5ba29f52976 100644
> --- a/disas/riscv-op.c.inc
> +++ b/disas/riscv-op.c.inc
> @@ -583,6 +583,8 @@ OP(vfnmsac_vf, "vfnmsac.vf", rv_codec_v_r, 
> rv_fmt_vd_fs1_vs2_vm)
>  OP(vfnmsac_vv, "vfnmsac.vv", rv_codec_v_r, rv_fmt_vd_vs1_vs2_vm)
>  OP(vfnmsub_vf, "vfnmsub.vf", rv_codec_v_r, rv_fmt_vd_fs1_vs2_vm)
>  OP(vfnmsub_vv, "vfnmsub.vv", rv_codec_v_r, rv_fmt_vd_vs1_vs2_vm)
> +OP(vfqwdota_alt_vv, "vfqwdota.alt.vv", rv_codec_v_r, rv_fmt_vd_vs2_vs1_vm)
> +OP(vfqwdota_vv, "vfqwdota.vv", rv_codec_v_r, rv_fmt_vd_vs2_vs1_vm)
>  OP(vfrdiv_vf, "vfrdiv.vf", rv_codec_v_r, rv_fmt_vd_vs2_fs1_vm)
>  OP(vfrec7_v, "vfrec7.v", rv_codec_v_r, rv_fmt_vd_vs2)
>  OP(vfredmax_vs, "vfredmax.vs", rv_codec_v_r, rv_fmt_vd_vs2_vs1_vm)
> diff --git a/disas/riscv.c b/disas/riscv.c
> index 62feb4c653e..0f609cc06b4 100644
> --- a/disas/riscv.c
> +++ b/disas/riscv.c
> @@ -2640,9 +2640,12 @@ 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 >> 12) & 0b111) == 1) {
> +                switch ((inst >> 26) & 0b111111) {
> +                case 36: return &op_vfwdota_vv;
> +                case 38: return &op_vfqwdota_vv;
> +                case 39: return &op_vfqwdota_alt_vv;
> +                }
>              }
>              if (((inst >> 25) & 1) == 1 && ((inst >> 12) & 0b111) == 2) {
>                  switch ((inst >> 26) & 0b111111) {
> -- 
> 2.56.0
> 
> 
> 

Sent using hkml (https://github.com/sjp38/hackermail)

Reply via email to