aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/rol.h
blob: 07735a1b32bcf998d9e44180cf00ce5e0601d6e9 (plain)
1
2
3
4
require_either_extension(EXT_ZBB, EXT_ZBKB);
int shamt = RS2 & (xlen-1);
int rshamt = -shamt & (xlen-1);
WRITE_RD(sext_xlen((RS1 << shamt) | (zext_xlen(RS1) >> rshamt)));