vextractbm
Vector Extract Byte Mask
vextractbm RA, vB
Extracts bit 0 of each byte element from a VSR into a GPR.
Details
The contents of bit 0 of each byte element of VSR[VRB+32] are concatenated and placed into bits 48:63 of GPR[RT]. Bits 0:47 of GPR[RT] are set to 0.
Pseudocode Operation
Programming Note
This instruction is used to extract the least significant bit from each byte of a vector register and pack them into the upper half of a general-purpose register. Ensure that the Vector Facility (MSR.VEC) is enabled before using this instruction; otherwise, it will raise an exception. The lower half of the target GPR is always zeroed out, so be cautious if you need to preserve existing data in that portion.
Example
vextractbm r4, vb
Encoding
Binary Layout
4
0
RT
6
8
11
VRB
16
1602
21
Operands
-
RA
Target -
vB
Source -
RT
Target General Purpose Register -
VRB
Source Vector Register