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
zimm5
19:15
011
14:12
vd
11:7
1010111
6:0
 
Format OPIVI
Opcode 0xB4003057
Extension V

Operands

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