aboutsummaryrefslogtreecommitdiff
path: root/disasm/disasm.cc
diff options
context:
space:
mode:
Diffstat (limited to 'disasm/disasm.cc')
-rw-r--r--disasm/disasm.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/disasm/disasm.cc b/disasm/disasm.cc
index 7c07ec3..5c0e9e0 100644
--- a/disasm/disasm.cc
+++ b/disasm/disasm.cc
@@ -1391,11 +1391,14 @@ void disassembler_t::add_instructions(const isa_parser_t* isa)
if (isa->get_max_xlen() == 32) {
DISASM_INSN("c.jal", c_jal, 0, {&rvc_jump_target});
} else {
+ DISASM_INSN("c.addiw", c_addiw, 0, {&xrd, &rvc_imm});
+ }
+
+ if (isa->get_max_xlen() == 64 || isa->extension_enabled(EXT_ZCMLSD)) {
DISASM_INSN("c.ld", c_ld, 0, {&rvc_rs2s, &rvc_ld_address});
DISASM_INSN("c.ldsp", c_ldsp, 0, {&xrd, &rvc_ldsp_address});
DISASM_INSN("c.sd", c_sd, 0, {&rvc_rs2s, &rvc_ld_address});
DISASM_INSN("c.sdsp", c_sdsp, 0, {&rvc_rs2, &rvc_sdsp_address});
- DISASM_INSN("c.addiw", c_addiw, 0, {&xrd, &rvc_imm});
}
}