mulhwu
Multiply High Word Unsigned
PPC440x5 CPU Core User’s Manual Preliminary
Page 378 of 589
instrset.fm.
September 12, 2002
mulhwu
Multiply High Word Unsigned
prod
0:63
← (RA) × (RB) unsigned
(RT)
← prod
0:31
The 64-bit unsigned product of registers RA and RB is formed. The most significant 32 bits of the result are
placed into register RT.
Registers Altered
•RT
• CR[CR0] if Rc contains 1
Programming Note
The most significant 32 bits of the product, unlike the least significant 32 bits, may differ depending on
whether the registers RA and RB are interpreted as signed or unsigned quantities. The mulhw instruction
generates the correct result when these operands are interpreted as signed quantities. The mulhwu instruc-
tion generates the correct result when these operands are interpreted as unsigned quantities.
Invalid Instruction Forms
• Reserved fields
mulhwu RT, RA, RB Rc=0
mulhwu. RT, RA, RB Rc=1
31 RT RA RB 11 Rc
0 6 11 16 21 22 31