mulhu

Operands

reg, reg, reg

Multiplication: set t1 to the upper 32 bits of t2*t3 using unsigned multiplication

Variants

  • Multiplication: set t1 to the upper 32 bits of t2*t3 using unsigned multiplication mulhu t1,t2,t3
.text
li t0, -1
li t1, 2
# t0=0xFFFFFFFF and t1=2; the unsigned high product is 1; mulhu writes 1 to t2.
mulhu t2, t0, t1