mulhwu
Multiply High Word Unsigned
mulhwu RT, RA, RB
Multiplies two 32-bit integers and returns the upper 32 bits (Unsigned).
Details
The mulhwu instruction multiplies the low-order 32 bits of two source registers (RA and RB) and places the high-order 32 bits of the result into the destination register (RT). The operation is performed unsigned.
Pseudocode Operation
prod0:63 ←(RA)32:63 × (RB)32:63
RT32:63 ←prod0:31
RT0:31 ←undefined
Programming Note
When Rc=1 (dot form), CR0 is updated with the signed comparison of the result against zero (LT, GT, EQ) and the current SO bit from XER.
Example
mulhwu r3, r4, r5
Encoding
Binary Layout
31
0
RT
6
RA
11
RB
16
OE
21
11
22
Rc
31
Operands
-
RT
Target -
RA
Src A -
RB
Src B