mulhw
Multiply High Word
Preliminary PPC440x5 CPU Core User’s Manual
instrset.fm.
September 12, 2002 Page 377 of 589
mulhw
Multiply High Word
prod
0:63
← (RA) × (RB) signed
(RT)
← prod
0:31
The 64-bit signed product of registers RA and RB is formed. The most significant 32 bits of the result is
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. mulhw generates the
correct result when these operands are interpreted as signed quantities. mulhwu generates the correct
result when these operands are interpreted as unsigned quantities.
Invalid Instruction Forms
• Reserved fields
mulhw RT, RA, RB Rc=0
mulhw. RT, RA, RB Rc=1
31 RT RA RB 75 Rc
0 6 11 16 21 22 31