blob: 6585b60fa9d1248cf8c93c46597560b3a3b3b1ac (
plain)
1
2
3
4
5
|
require_either_extension(EXT_ZBB, EXT_ZBKB);
require(SHAMT < xlen);
int shamt = SHAMT & (xlen-1);
int rshamt = -shamt & (xlen-1);
WRITE_RD(sext_xlen((RS1 << rshamt) | (zext_xlen(RS1) >> shamt)));
|