vpextd
Vector Parallel Bits Extract Doubleword
Extracts bits from one vector register based on the bit positions specified in another vector register and places them into a third vector register.
Details
The vpextd instruction extracts bits from one vector register based on the bit positions specified in another vector register and places them into a third vector register. The operation is performed on each doubleword element of the vectors.
Pseudocode Operation
Programming Note
The vpextd instruction is used to extract bits from one vector register based on the bit positions specified in another vector register. Ensure that the Vector Facility (MSR.VEC) is enabled before using this instruction; otherwise, a Vector_Unavailable exception will be raised. This operation is performed on each doubleword element of the vectors, so ensure proper alignment and indexing to avoid unexpected results.
Example
Encoding
Operands
-
vD
Target -
vA
Source -
vB
Mask -
VRT
Target Vector Register -
VRA
Source Vector Register A -
VRB
Source Vector Register B