VRGATHER.VI

Vector Register Gather Immediate

VRGATHER.VI vd, vs2, imm, vm

Gathers element at index 'imm' from vs2 (splat).

Encoding

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

Operands

  • vd
    Destination vector register
  • vs2
    Table
  • imm
    Index

Example

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

Related

More in V

Description

Gathers elements from vs2 using indices in vs1 (or an immediate), writing to vd. Out-of-range indices produce zero.

Operation

vd[*] = vs2[imm];