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