aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/uraddw.h
blob: 6a9455fcac55bf42e7f9a772286390a813c4c071 (plain)
1
2
3
4
require_extension(EXT_ZPN);
reg_t res = (reg_t)P_W(RS1, 0) + (reg_t)P_W(RS2, 0);
res >>= 1;
WRITE_RD(sext_xlen((int32_t)res));