VMSBC.VV

Vector Mask Set Before First

VMSBC.VV vd, vs2, vs1

Writes a mask where bits are 1 before the first element in vs2 that is 1.

Details

Vector Mask Set Before First: Writes a mask where bits are 1 before the first element in vs2 that is 1. Operation: Sets mask bits to 1 up to (but not including) the first set bit in vs2..

Pseudocode Operation

Sets mask bits to 1 up to (but not including) the first set bit in vs2.

Example

VMSBC.VV v1, v4, v2

Encoding

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

Operands

  • vd
    Dest Mask
  • vs2
    Src Mask