offs_imm(o_imm),
prd(p_rd), prs1(p_rs1), prs2(p_rs2), prs3(p_rs3) {}
uint64_t _rvc_spoffs_imm(uint64_t elwidth, uint64_t baseoffs);
- uint64_t rvc_ldsp_imm() { return _rvc_spoffs_imm(4, insn_t::rvc_ldsp_imm()); }
- uint64_t rvc_lwsp_imm() { return _rvc_spoffs_imm(8, insn_t::rvc_lwsp_imm()); }
+ uint64_t rvc_lwsp_imm() { return _rvc_spoffs_imm(4, insn_t::rvc_lwsp_imm()); }
+ uint64_t rvc_ldsp_imm() { return _rvc_spoffs_imm(8, insn_t::rvc_ldsp_imm()); }
uint64_t rd () { return predicated(_rd (), *offs_rd, prd); }
uint64_t rs1() { return predicated(_rs1(), *offs_rs1, prs1); }
uint64_t rs2() { return predicated(_rs2(), *offs_rs2, prs2); }