vupklpx
Vector Unpack Low Pixel
Unpacks low 4 pixels to 4 words.
Details
The Vector Unpack Low Pixel instruction (vupklpx) unpacks the low halfwords of a vector register into bytes, sign-extending the first bit and zero-extending the remaining bits. The result is stored in another vector register.
Pseudocode Operation
Programming Note
The vupklpx instruction is used to unpack the low halfwords of a vector register into bytes, sign-extending the first bit and zero-extending the remaining bits. Ensure that the Vector Facility (MSR.VEC) is enabled before using this instruction; otherwise, a Vector_Unavailable exception will be raised. This instruction operates on 128-bit vector registers and processes each halfword in the source register to produce four bytes per iteration.
Example
Encoding
Operands
-
vD
Target -
vB
Source