blob: b8e6d6d4c08be075a8c60f167b28f8271fc2e223 (
plain)
1
2
3
4
5
6
|
require_either_extension(EXT_ZBC, EXT_ZBKC);
reg_t a = zext_xlen(RS1), b = zext_xlen(RS2), x = 0;
for (int i = 0; i < xlen; i++)
if ((b >> i) & 1)
x ^= a << i;
WRITE_RD(sext_xlen(x));
|