vupkhpx
Vector Unpack High Pixel
Unpacks high 4 pixels to 4 words.
Details
The Vector Unpack High Pixel instruction (vupkhpx) unpacks the high halfwords of a vector register into bytes, sign-extending the most significant bit and zero-extending the remaining bits. The result is stored in another vector register.
Pseudocode Operation
Programming Note
The vupkhpx instruction is used to unpack the high halfwords of a vector register into bytes, sign-extending the most significant 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 operation is useful for processing pixel data where each pixel requires byte-level manipulation.
Example
Encoding
Operands
-
vD
Target -
vB
Source