IBM SA14-2339-04 Personal Computer User Manual


 
9-130 PPC405 Core User’s Manual
mullw
Multiply Low Word
mullw
Multiply Low Word
prod
0:63
(RA) × (RB) signed
(RT)
prod
32:63
The 64-bit signed product of register RA and register RB is formed. The least significant 32 bits of the
result is placed into register RT.
If the signed product cannot be represented in 32 bits and OE=1, XER[SO, OV] are set to 1.
Registers Altered
•RT
CR[CR0]
LT, GT, EQ, SO
if Rc contains 1
XER[SO, OV] if OE=1
Programming Note
The least significant 32 bits of the product are correct, regardless of whether register RA and register
RB are interpreted as signed or unsigned numbers. The overflow indication is correct only if the
operands are regarded as signed numbers.
Architecture Note
This instruction is part of the PowerPC User Instruction Set Architecture.
mullw RT, RA, RB OE=0, Rc=0
mullw. RT, RA, RB OE=0, Rc=1
mullwo RT, RA, RB OE=1, Rc=0
mullwo. RT, RA, RB OE=1, Rc=1
31 RT RA RB OE 235 Rc
0 6 11 16 21 22 31