VNSRL.WI

Vector Narrowing Shift Right Logical Immediate

VNSRL.WI vd, vs2, imm, vm

Shifts wide elements right 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] >>u imm) & Mask;

Example

VNSRL.WI v1, v4, 16, v0.t

Encoding

Binary Layout
101100
31:26
vm
25
vs2
24:20
imm
011
19:17
vd
16:12
1010111
11:5
 
Format OPIVI
Opcode 0x57
Extension V

Operands

  • vd
    Dest (Narrow)
  • vs2
    Src (Wide)
  • imm
    Signed immediate value