VRSUB.VI

Vector Reverse Subtract Immediate

VRSUB.VI vd, vs2, imm, vm

Computes vd = imm - vs2.

Details

Performs element-wise reverse integer subtraction 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 = imm - vs2;

Example

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

Encoding

Binary Layout
000011
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
    Destination vector register
  • vs2
    Source vector register 2
  • imm
    Imm