VNSRL.WX
Vector Narrowing Shift Right Logical
VNSRL.WX vd, vs2, rs1, vm
Shifts 2*N-bit elements right and narrows the result 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] >> rs1) & Mask(SEW);
Example
VNSRL.WX v1, v4, a0, v0.t
Encoding
Binary Layout
101100
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