vextsb2d
Vector Extend Sign Byte To Doubleword
vextsb2d vD, vB
Sign-extends the byte elements of a vector register to doublewords.
Details
For vextsb2d, each byte element in VSR[VRB+32] is sign-extended and placed into corresponding doubleword elements in VSR[VRT+32].
Pseudocode Operation
Programming Note
This instruction is used to sign-extend each byte in the source vector register into a doubleword in the destination vector register. Ensure that the Vector Facility (MSR.VEC) is enabled before using this instruction; otherwise, it will raise an exception. The operation processes two elements per iteration, and there are no specific alignment requirements for the data. This instruction operates at the user privilege level.
Example
vextsb2d vd, vb
Encoding
Binary Layout
4
0
VRT
6
24
11
VRB
16
1538
21
Operands
-
vD
Target -
vB
Source -
VRT
Target Vector Register -
VRB
Source Vector Register