vexpanddm
Vector Expand Doubleword Mask
Expands bits from a GPR mask into a doubleword-element vector.
Details
The Vector Expand Doubleword Mask instruction creates a field mask by replicating the contents of bit 0 of each doubleword element in the source VSR to all bits in the corresponding element in the target VSR.
Pseudocode Operation
Programming Note
This instruction is useful for creating masks where each doubleword element in the target vector register is either all ones or all zeros based on the least significant bit of the corresponding source vector element. Ensure that the Vector Facility (VEC) bit in the Machine State Register (MSR) is set to 1; otherwise, a Vector Unavailable exception will be raised. The instruction operates on doubleword elements, so ensure proper alignment and indexing when using this instruction.
Example
Encoding
Operands
-
vD
Target -
vB
Source