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