vgnb
Vector Gather Non-Zero Bytes
vgnb vD, vB, UIM
Gathers every Nth bit from a vector register and places it into a general-purpose register.
Details
The vgnb instruction gathers every Nth bit from the contents of VSR[VRB+32] starting with bit 0, concatenates them, and places the result into GPR[RT]. The value of N must be between 2 and 7 inclusive.
Pseudocode Operation
Programming Note
N must be between 2 and 7 inclusive.
Example
vgnb vd, vb, uim
Encoding
Binary Layout
4
0
vD
6
UIM
11
vB
16
1228
Operands
-
vD
Target -
vB
Source -
UIM
Stream -
RT
Target General Purpose Register -
VRB
Source Vector Register -
N
Gather interval (2 to 7)