vextsh2d
Vector Extend Sign Halfword To Doubleword
Extends the sign of each halfword in a vector to doubleword.
Details
The vextsh2d instruction sign-extends the signed integer in bits 48:63 of each doubleword element from the source vector register (VRB) and places the result into the corresponding doubleword element of the destination vector register (VRT). This operation is performed for each integer value i from 0 to 1.
Pseudocode Operation
Programming Note
This instruction is used for sign-extending the upper 16 bits of each doubleword in a vector from VRB to VRT. 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 instruction execution.
Example
Encoding
Operands
-
vD
Target -
vB
Source -
VRT
Target Vector Register -
VSRC
Source Vector Register