VNSRA.WX
Vector Narrowing Shift Right Arithmetic
VNSRA.WX vd, vs2, rs1, vm
Arithmetically shifts 2*N-bit elements right and narrows to N-bits.
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 rs1) & Mask(SEW);
Example
VNSRA.WX v1, v4, a0, v0.t
Encoding
Binary Layout
101101
31:26
vm
25
vs2
24:20
rs1
19:15
100
14:12
vd
11:7
1010111
6:0
Operands
-
vd
Dest (SEW) -
vs2
Src Vector (2*SEW) -
rs1
Shift Amount