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