VSRA.VI

Vector Shift Right Arithmetic Immediate

VSRA.VI vd, vs2, imm, vm

Shifts elements right (arithmetic) by immediate.

Details

Performs element-wise right arithmetic shift on a vector and an immediate, writing results to vd. The number of elements processed is determined by vl, and masking is controlled by vm.

Pseudocode Operation

vd = vs2 >>s imm;

Example

VSRA.VI v1, v4, 16, v0.t

Encoding

Binary Layout
101001
31:26
vm
25
vs2
24:20
zimm5
19:15
011
14:12
vd
11:7
1010111
6:0
 
Format OPIVI
Opcode 0xA4003057
Extension V

Operands

  • vd
    Destination vector register
  • vs2
    Source vector register 2
  • imm
    Signed immediate value