aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/c_fsw.h
blob: 381ab5eba46766784fcfd9b6089a980e255cc69b (plain)
1
2
3
4
5
6
7
8
require_extension('C');
if (xlen == 32) {
  require_extension('F');
  require_fp;
  MMU.store<uint32_t>(RVC_RS1S + insn.rvc_lw_imm(), RVC_FRS2S.v[0]);
} else { // c.sd
  MMU.store<uint64_t>(RVC_RS1S + insn.rvc_ld_imm(), RVC_RS2S);
}