VNSRA.WI
Vector Narrowing Shift Right Arithmetic Immediate
VNSRA.WI vd, vs2, imm, vm
Shifts wide elements right (arithmetic) by immediate and narrows.
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] = (vs2[i] >>s imm) & Mask;
Example
VNSRA.WI v1, v4, 16, v0.t
Encoding
Binary Layout
101101
31:26
vm
25
vs2
24:20
imm
011
19:17
vd
16:12
1010111
11:5
Operands
-
vd
Dest (Narrow) -
vs2
Src (Wide) -
imm
Signed immediate value