vupklsb
Vector Unpack Low Signed Byte
vupklsb vD, vB
Unpacks low 8 signed bytes to 8 signed halfwords.
Details
The Vector Unpack Low Signed Byte instruction (vupklsb) unpacks the low 8 bytes of a vector register into signed halfwords in another vector register. Each byte is sign-extended to form a 16-bit halfword.
Pseudocode Operation
Programming Note
This instruction is useful for processing byte data by converting it into signed halfwords, which can be beneficial for operations requiring sign extension. Ensure that the vector facility (MSR.VEC) is enabled before using this instruction; otherwise, a Vector_Unavailable exception will occur. The input vector must be properly aligned to avoid unexpected results.
Example
vupklsb vd, vb
Encoding
Binary Layout
4
0
vD
6
0
11
vB
16
654
21
Operands
-
vD
Target -
vB
Source