require_extension('C');
require_extension('D');
require_fp;
-MMU.store_uint64(rv_add(RVC_RS1S, insn.rvc_ld_imm()), ((freg_t)RVC_FRS2S).v[0]);
+MMU.store_uint64(insn.rvc_rs1s(), insn.rvc_ld_imm(), ((freg_t)RVC_FRS2S).v[0]); // RVC_RS1S
if (xlen == 32) {
require_extension('F');
require_fp;
- MMU.store_uint32(rv_add(RVC_RS1S, insn.rvc_lw_imm()), ((freg_t)RVC_FRS2S).v[0]);
+ MMU.store_uint32(insn.rvc_rs1s(), insn.rvc_lw_imm(), ((freg_t)RVC_FRS2S).v[0]); //RVC_RS1S
} else { // c.sd
- MMU.store_uint64(rv_add(RVC_RS1S, insn.rvc_ld_imm()), RVC_RS2S);
+ MMU.store_uint64(insn.rvc_rs1s(), insn.rvc_ld_imm(), RVC_RS2S); //RVC_RS1S,
}
require_extension('C');
-MMU.store_uint32(rv_add(RVC_RS1S, insn.rvc_lw_imm()), RVC_RS2S);
+MMU.store_uint32(insn.rvc_rs1s(), insn.rvc_lw_imm(), RVC_RS2S); // RVC_RS1S
require_extension('D');
require_fp;
-MMU.store_uint64(rv_add(RS1, insn.s_imm()), ((freg_t)FRS2).v[0]);
+MMU.store_uint64(insn.rs1(), insn.s_imm(), ((freg_t)FRS2).v[0]); // RS1
require_extension('F');
require_fp;
-MMU.store_uint32(rv_add(RS1, insn.s_imm()), ((freg_t)FRS2).v[0]);
+MMU.store_uint32(insn.rs1(), insn.s_imm(), ((freg_t)FRS2).v[0]); // RS1
-MMU.store_uint8(rv_add(RS1, insn.s_imm()), RS2);
+MMU.store_uint8(insn.rs1(), insn.s_imm(), RS2); // RS1
require_rv64;
-MMU.store_uint64(rv_add(RS1, insn.s_imm()), RS2);
+MMU.store_uint64(insn.rs1(), insn.s_imm(), RS2); // RS1
-MMU.store_uint16(rv_add(RS1, insn.s_imm()), RS2);
+MMU.store_uint16(insn.rs1(), insn.s_imm(), RS2); // RS1
-MMU.store_uint32(rv_add(RS1, insn.s_imm()), RS2);
+MMU.store_uint32(insn.rs1(), insn.s_imm(), RS2); // RS1