aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/mulhsu.h
blob: c53f90b00118c77326e778d9d0ff4b765bfb2527 (plain)
1
2
3
4
5
require_extension('M');
if (xlen == 64)
  WRITE_RD(mulhsu(RS1, RS2));
else
  WRITE_RD(sext32((sext32(RS1) * reg_t((uint32_t)RS2)) >> 32));