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