extswsli
Extend Sign Word and Shift Left Immediate
extswsli RA,RS,SH
Sign-extends the low-order 32 bits of a register, shifts it left by SH bits, and places the result in another register.
Details
The contents of the low order 32 bits of RS are sign-extended to 64 bits and then shifted left SH bits. Bits shifted out of bit 0 are lost. Zeros are supplied to vacated bits on the right. The result is placed in register RA.
Pseudocode Operation
Programming Note
When Rc=1 (dot form), CR0 is updated with the signed comparison of the result against zero (LT, GT, EQ) and the current SO bit from XER.
Example
extswsli r4, r3, 3
Encoding
Binary Layout
RS
6
RA
11
SH
16
445
21
Rc
30
Operands
-
RA
Target General Purpose Register -
RS
Source General Purpose Register -
SH
Shift Amount (0-31)