mulli or muli (Multiply Low Immediate) instruction
Purpose
Multiplies the contents of a general-purpose register by a 16-bit signed integer and stores the result in another general-purpose register.
Syntax
Bits | Value |
---|---|
0 - 5 | 07 |
6 - 10 | RT |
11 - 15 | RA |
16 - 31 | SI |
Description
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.
Parameters
Item | Description |
---|---|
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. |
Examples
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.