Rotates the contents of a general-purpose register to the left by a specified number of bits in an immediate value, merges the result with the contents of the MQ Register under control of a mask, and places the rotated word in the MQ Register and the masked result in another general-purpose register.
Note: The slliq instruction is supported only in the POWER family architecture.
Bits | Value |
---|---|
0-5 | 31 |
6-10 | RS |
11-15 | RA |
16-20 | SH |
21-30 | 248 |
31 | Rc |
POWER family | |
---|---|
slliq | RA, RS, SH |
slliq. | RA, RS, SH |
The slliq instruction rotates the contents of the source general-purpose register (GPR) RS to the left by N bits, where N is the shift amount specified in SH, merges the result with the contents of the MQ Register, and stores the rotated word in the MQ Register and the final result in GPR RA. The mask consists of 32 minus N ones followed by N zeros.
The slliq instruction has two syntax forms. Each syntax form has a different effect on Condition Register Field 0.
Syntax Form | Overflow Exception (OE) | Fixed-Point Exception Register | Record Bit (Rc) | Condition Register Field 0 |
slliq | None | None | 0 | None |
slliq. | None | None | 1 | LT,GT,EQ,SO |
The two syntax forms of the slliq instruction never affect the Fixed-Point Exception Register. If the syntax form sets the Record (Rc) bit to 1, the instruction affects the Less Than (LT) zero, Greater Than (GT) zero, Equal To (EQ) zero, and Summary Overflow (SO) bits in Condition Register Field 0.
RA | Specifies target general-purpose register where result of operation is stored. |
RS | Specifies source general-purpose register for operation. |
SH | Specifies immediate value for shift amount. |
# Assume GPR 4 contains 0x9000 3000. # Assume the MQ Register contains 0xFFFF FFFF. slliq 6,4,0x3 # GPR 6 now contains 0x8001 8007. # The MQ Register now contains 0x8001 8004.
# Assume GPR 4 contains 0xB004 3000. # Assume the MQ Register contains 0xFFFF FFFF. slliq. 6,4,0x4 # GPR 6 now contains 0x0043 000F. # The MQ Register contains 0x0043 000B. # Condition Register Field 0 now contains 0x4.
Fixed-Point Rotate and Shift Instructions .