| |||

Home > NEON and VFP Programming > NEON general arithmetic instructions > VABA{L} and VABD{L} |

`VABA`

(Vector Absolute Difference and Accumulate)
subtracts the elements of one vector from the corresponding elements
of another vector, and accumulates the absolute values of the results
into the elements of the destination vector.

`VABD`

(Vector Absolute Difference) subtracts the
elements of one vector from the corresponding elements of another
vector, and places the absolute values of the results into the elements
of the destination vector.

Long versions of both instructions are available.

V{`op`

}.`cond`

{`datatype`

},`Qd`

,`Qn`

`Qm`

V{`op`

}.`cond`

{`datatype`

},`Dd`

,`Dn`

`Dm`

VL{`op`

}.`cond`

`datatype`

,`Qd`

,`Dn`

`Dm`

where:

`op`

must be either

`ABA`

or`ABD`

.`cond`

is an optional condition code (see

*Condition codes*).`datatype`

must be one of:

`S8`

,`S16`

,`S32`

,`U8`

,`U16`

, or`U32`

for`VABA`

,`VABAL`

, or`VABDL`

`S8`

,`S16`

,`S32`

,`U8`

,`U16`

,`U32`

or`F32`

for`VABD`

.

,`Qd`

,`Qn`

`Qm`

are the destination vector, the first operand vector, and the second operand vector, for a quadword operation.

,`Dd`

,`Dn`

`Dm`

are the destination vector, the first operand vector, and the second operand vector, for a doubleword operation.

,`Qd`

,`Dn`

`Dm`

are the destination vector, the first operand vector, and the second operand vector, for a long operation.