Multiplies the contents of a general-purpose register by a 16-bit signed integer and stores the result in another general-purpose register.
PowerPC | |
---|---|
mulli | RT,RA,SI |
POWER | |
---|---|
muli | RT,RA,SI |
The mulli and muli instructions sign extend the SI field to 32 bits and then multiply the extended value by the contents of general-purpose register (GPR) RA. The least significant 32 bits of the 64-bit product are placed in the target GPR RT.
The mulli and muli instructions have one syntax form and do not affect Condition Register Field 0 or the Fixed-Point Exception Register.
RT | Specifies target general-purpose register where result of operation is stored. |
RA | Specifies source general-purpose register for operation. |
SI | Specifies 16-bit signed integer for operation. |
The following code multiplies the contents of GPR 4 by 10 and places the result in GPR 6:
# Assume GPR 4 holds 0x0000 3000. mulli 6,4,10 # GPR 6 now holds 0x0001 E000.
The mul (Multiply) instruction, mulhw (Multiply High Word) instruction, mulhwu (Multiply High Word Unsigned) instruction, mullw or muls (Multiply Low Word) instruction.
Fixed-Point Arithmetic Instructions.