mtvsrbmi

Move to Vector Scalar Register with Bit Mask Immediate

N/A

Moves a bit mask immediate value into a vector scalar register, setting each byte element based on corresponding bits of the immediate.

Details

The mtvsrbmi instruction loads a vector register with byte-sized elements derived from an immediate bit mask. Each bit of the immediate field controls whether the corresponding byte element of the target vector register is set to all ones (0xFF) or all zeros (0x00). This instruction was introduced in PowerISA v3.1 and uses the DX instruction format.

Pseudocode Operation

Not available in specification

Programming Note

The mtvsrbmi instruction is useful for initializing vector registers with specific byte patterns based on an immediate bit mask. Ensure that the immediate value correctly reflects the desired byte-wise initialization to avoid unexpected results. This instruction operates at user privilege level and does not raise exceptions under normal conditions.

Example

mtvsrbmi vs1, 0, 0xFF

Encoding

Binary Layout
4
0
VRT
6
b1
11
b0
16
10
26
b2
31
 
Format XO-form
Opcode 0x10000014
Extension Base

Operands