vextractub
Vector Extract Unsigned Byte to VSR using Immediate-specified Index VX-form
vextractub RA, vB, UIM
Extracts an unsigned byte from a vector register and places it into the upper byte of another vector register.
Details
The contents of byte element UIM of VSR[VRB+32] are placed into bits 56:63 of VSR[VRT+32]. The contents of the remaining byte elements of VSR[VRT+32] are set to 0.
Pseudocode Operation
Programming Note
If the value of UIM is greater than 14, the results are undefined.
Example
vextractub r4, vb, uim
Encoding
Binary Layout
4
0
RA
6
UIM
11
vB
16
525
Operands
-
RA
Target GPR -
vB
Source Vector -
UIM
Index -
VRT
Target Vector Register -
VRB
Source Vector Register