aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/c_srai.h
blob: f6638b1e2747c7bc2ec8bb268230658ff4f77052 (plain)
1
2
3
require_extension('C');
require(insn.rvc_zimm() < xlen);
WRITE_RVC_RS1S(sext_xlen(sext_xlen(RVC_RS1S) >> insn.rvc_zimm()));