What is the operand direction of VSUB.VX?
It is vs2 minus the second operand, unlike the reverse-subtract direction of VRSUB.
Element-wise vector integer subtraction.
VSUB.VX computes vs2[i] - x[rs1] for active elements and writes the low SEW bits to vd.
VSUB.VX is ordinary vector integer subtraction with results wrapping at SEW width.
Understand this scenario with real code like «vsub.vx v8, v12, x5, v0.t».
Understand this scenario with real code like «vsub.vx v8, v12, x5, v0.t».
Understand this scenario with real code like «vsub.vx v8, v12, x5, v0.t».
It is vs2 minus the second operand, unlike the reverse-subtract direction of VRSUB.