vextractuw
Vector Extract Unsigned Word to VSR using Immediate-specified Index VX-form
Extracts an unsigned word from a vector register and places it into another vector register using an immediate-specified index.
Details
The contents of byte elements UIM:UIM+3 of VSR[VRB+32] are placed into word element 1 of VSR[VRT+32]. The contents of the remaining word elements of VSR[VRT+32] are set to 0.
Pseudocode Operation
Programming Note
This instruction is used to extract a 4-byte unsigned word from a vector register and place it into another vector register. Ensure that the Vector Facility (MSR.VEC) is enabled; otherwise, a Vector_Unavailable exception will be raised. The source byte elements must be correctly specified by UIM, and the destination register will have its first dword set to the extracted value while the second dword is zeroed out.
Example
Encoding
Operands
-
RA
Target GPR -
vB
Source Vector -
UIM
Index -
VRT
Target Vector Register -
VRB
Source Vector Register -
VX
Target Vector Register -
VS
Source Vector Register -
UI
Immediate-specified index