vextractwm
Vector Extract Word Mask
Extracts the least significant bit of each word element from a vector register and places them into a general-purpose register.
Details
The contents of bit 0 of each word element of VSR[VRB+32] are concatenated and placed into bits 60:63 of GPR[RT]. Bits 0:59 of GPR[RT] are set to 0.
Pseudocode Operation
Programming Note
This instruction is used to extract the least significant bit of each word from a vector register and pack them into the upper four bits 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 60 bits of the target GPR are always cleared, so be cautious if you need to preserve existing data in those positions.
Example
Encoding
Operands
-
RA
Target -
vB
Source -
RT
Target General Purpose Register -
VRB
Source Vector Register