aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/bset.h
blob: 9009fb328a5c2d1b03cbc39c34cce924eb1397f3 (plain)
1
2
3
require_extension(EXT_ZBS);
int shamt = RS2 & (xlen-1);
WRITE_RD(sext_xlen(RS1 | (1LL << shamt)));