VMSIF.M

Vector Mask Set Including First

VMSIF.M vd, vs2, vm

Sets mask bits up to and including the first set bit in the source.

Details

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

Pseudocode Operation

Set 1s up to and including the first 1 in vs2.

Example

VMSIF.M v1, v4, v0.t

Encoding

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

Operands

  • vd
    Dest Mask
  • vs2
    Src Mask