VNCLIP.WV
Vector Narrowing Clip (Arithmetic Shift)
VNCLIP.WV vd, vs2, vs1, vm
Shifts elements right, rounds, and clips (saturates) the result to the destination width. Critical for Quantization.
Details
Performs a narrowing operation, halving the result element width relative to the source. Optionally saturates the result. Active elements are determined by vl; masking by vm.
Pseudocode Operation
foreach(i < vl): vd[i] = clip(round(vs2[i] >> vs1[i]));
Example
VNCLIP.WV v1, v4, v2, v0.t
Encoding
Binary Layout
101111
31:26
vm
25
vs2
24:20
vs1
19:15
000
14:12
vd
11:7
1010111
6:0
Operands
-
vd
Dest (Narrow) -
vs2
Src Vector (Wide) -
vs1
Shift Vector