VMSBF.M

Vector Mask Set Before First

VMSBF.M vd, vs2, vm

Sets mask bits before the first set bit in the source mask.

Details

Sets each destination mask bit to 1 for elements before the first active set bit in vs2.

Pseudocode Operation

Set 1s up to the first 1 in vs2.

Example

VMSBF.M v1, v4, v0.t

Encoding

Binary Layout
010100
31:26
vm
25
vs2
24:20
00001
19:15
010
14:12
vd
11:7
1010111
6:0
 
Format OPMVV
Opcode 0x57
Extension V

Operands

  • vd
    Dest Mask
  • vs2
    Src Mask