vextsh2w
Vector Extend Sign Halfword To Word
Sign-extends halfwords to words.
Details
The Vector Extend Sign Halfword To Word instruction sign-extends the signed integer in bits 16:31 of each word element from the source vector register to a full 32-bit word and places the result into the corresponding word element of the destination vector register.
Pseudocode Operation
Programming Note
This instruction is used to sign-extend the upper half of each word in a vector register. Ensure that the Vector Facility (MSR.VEC) is enabled before using this instruction; otherwise, it will raise an exception. The operation processes four 32-bit words per vector register, and there are no specific alignment requirements for the data.
Example
Encoding
Operands
-
vD
Target -
vB
Source