Rotates the contents of a general-purpose register to the left by the number of bits specified in a general-purpose register, places the rotated word in the MQ Register, and places the logical AND of the rotated word and a generated mask in a third general-purpose register.
Note: The slq instruction is supported only in the POWER architecture.
The slq 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 bits 27-31 of GPR RB, and stores the rotated word in the MQ Register. The mask depends on bit 26 of GPR RB.
Consider the following when using the slq instruction:
This instruction then stores the logical AND of the rotated word and the generated mask in GPR RA.
The slq 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|
The two syntax forms of the slq 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.|
|RB||Specifies source general-purpose register for operation.|
# Assume GPR 4 contains 0x9000 3000. # Assume GPR 5 contains 0x0000 0024. slq 6,4,5 # GPR 6 now contains 0x0000 0000. # The MQ Register now contains 0x0003 0009.
# Assume GPR 4 contains 0xB004 3000. # Assume GPR 5 contains 0x0000 0004. slq. 6,4,5 # GPR 6 now contains 0x0043 0000. # The MQ Register now contains 0x0043 000B. # Condition Register Field 0 now contains 0x4.
Fixed-Point Rotate and Shift Instructions.