mulhsu

Operands

reg, reg, reg

Multiplication: set t1 to the upper 32 bits of t2*t3 where t2 is signed and t3 is unsigned

Variants

  • Multiplication: set t1 to the upper 32 bits of t2*t3 where t2 is signed and t3 is unsigned mulhsu t1,t2,t3
.text
li t0, -2147483648
li t1, 2
# t0=-2147483648 and t1=2; the high product is -1; mulhsu writes -1 (0xFFFFFFFF) to t2.
mulhsu t2, t0, t1