VMERGE.VIM
Vector Merge Immediate
VMERGE.VIM vd, vs2, imm, v0
Merges immediate vs vector based on mask.
Details
Merges elements from vs1 and vs2 (or an immediate) according to the mask: masked-on elements come from vs1, masked-off from vs2.
Pseudocode Operation
vd[i] = v0[i] ? imm : vs2[i];
Example
VMERGE.VIM v1, v4, 16, v0
Encoding
Binary Layout
0101110
31:25
vs2
24:20
simm5
19:15
011
14:12
vd
11:7
1010111
6:0
Operands
-
vd
Destination vector register -
vs2
False -
imm
True (Imm)