vextduhvlx
Vector Extract Double Unsigned Halfword to VSR using GPR-specified Left-Index VA-form
Extracts a double unsigned halfword from two vector registers and places it into another vector register based on the index specified in a general-purpose register.
Details
The instruction extracts a double unsigned halfword from the concatenation of VSR[VRA+32] and VSR[VRB+32] using the index specified in bits 59:63 of GPR[RC]. The extracted byte elements are zero-extended and placed into doubleword 0 of VSR[VRT+32], while doubleword 1 is set to zero.
Pseudocode Operation
Programming Note
This instruction is used to extract a double unsigned halfword from two vector registers and place it into another vector register. Ensure that the index specified in GPR[RC] is within bounds to avoid undefined behavior. The operation requires the VEC bit in the MSR to be set; otherwise, a Vector Unavailable exception will occur.
Example
Encoding
Operands
-
VRT
Target Vector Register -
VRA
Source Vector Register -
VRB
Source Vector Register -
RC
General Purpose Register specifying the index