VMSOF.M
Vector Mask Set Only First
VMSOF.M vd, vs2, vm
Sets only the first set bit from the source mask.
Details
Sets only the destination mask bit corresponding to the first active set bit in vs2.
Pseudocode Operation
vd = (1 << first_set_index(vs2)) & vm;
Example
VMSOF.M v1, v4, v0.t
Encoding
Binary Layout
010100
31:26
vm
25
vs2
24:20
00010
19:15
010
14:12
vd
11:7
1010111
6:0
Operands
-
vd
Dest Mask -
vs2
Src Mask