VSLIDEDOWN.VX

Vector Slide Down

VSLIDEDOWN.VX vd, vs2, rs1, vm

Moves elements down by a scalar amount (vd[i] = vs2[i + rs1]).

Details

Slides vector elements down by the specified offset, filling vacated positions with zero or the value from vs1[0].

Pseudocode Operation

foreach(i < vl): vd[i] = vs2[i + rs1];

Example

VSLIDEDOWN.VX v1, v4, a0, v0.t

Encoding

Binary Layout
001111
31:26
vm
25
vs2
24:20
rs1
19:15
100
14:12
vd
11:7
1010111
6:0
 
Format OPIVX
Opcode 0x57
Extension V

Operands

  • vd
    Destination vector register
  • vs2
    Source Vector
  • rs1
    Shift Amount