vextuhlx
Vector Extract Unsigned Halfword to GPR using GPR-specified Left-Index
Extracts an unsigned halfword from a vector register and places it into a general-purpose register using the left index specified in another general-purpose register.
Details
The instruction extracts an unsigned halfword from VSR[VRB+32] based on the left index specified in bits 60:63 of GPR[RA]. The extracted halfword is placed into bits 48:63 of GPR[RT], and bits 0:47 of GPR[RT] are set to zero. If the index is greater than 14, the results are undefined.
Pseudocode Operation
Programming Note
This instruction is used to extract an unsigned halfword from a vector register into a general-purpose register. Ensure the left index specified in bits 60:63 of GPR[RA] does not exceed 14 to avoid undefined behavior. The result is zero-extended to 64 bits, so only the upper 16 bits of GPR[RT] will contain valid data.
Example
Encoding
Operands
-
RT
Target General Purpose Register -
RA
Source General Purpose Register -
VRB
Vector Register