vextublx
Vector Extract Unsigned Byte to GPR using GPR-specified Left-Index VX-form
Extracts an unsigned byte from a vector register and places it into a general-purpose register using the left-index specified in another general-purpose register.
Details
The contents of byte element index of VSR[VRB+32] are placed into bits 56:63 of GPR[RT], where index is the contents of bits 60:63 of GPR[RA]. The contents of bits 0:55 of GPR[RT] are set to 0.
Pseudocode Operation
Programming Note
This instruction extracts an unsigned byte from a vector register and places it into the upper 8 bits of a general-purpose register, zeroing out the lower 56 bits. Ensure that the index in GPR[RA] is within bounds (0-15) to avoid undefined behavior. This operation requires the Vector Facility to be enabled; otherwise, a Vector Unavailable exception will occur.
Example
Encoding
Operands
-
RT
Target General Purpose Register -
RA
Source General Purpose Register containing the index -
VRB
Vector Register B -
VRT
Target Vector Register -
RB
Source Vector Register