Skip to content

Vector Arithmetic

These instructions perform element-wise arithmetic on vectors (arrays).

OpcodeArgumentsOperands (stack)Description
addv / subvtypearr1, arr2Element-wise Addition or Subtraction of two vectors
mulv / divvtypearr1, arr2Element-wise Multiplication or Division of two vectors
modvtypearr1, arr2Element-wise Modulo (Remainder) of two vectors
negvtypearrElement-wise Negation of a vector