| |||

Home > NEON and VFP Programming > NEON general arithmetic instructions > V{R}ADDHN and V{R}SUBHN |

`V{R}ADDH`

(Vector Add and Narrow, selecting High
half) adds corresponding elements in two vectors, selects the most
significant halves of the results, and places the final results
in the destination vector. Results can be either rounded or truncated.

`V{R}SUBH`

(Vector Subtract and Narrow, selecting
High half) subtracts the elements of one vector from the corresponding
elements of another vector, selects the most significant halves
of the results, and places the final results in the destination
vector. Results can be either rounded or truncated.

V{R}HN{`op`

}.`cond`

`datatype`

,`Dd`

,`Qn`

`Qm`

where:

`R`

if present, indicates that each result is rounded. Otherwise, each result is truncated.

`op`

must be either

`ADD`

or`SUB`

.`cond`

is an optional condition code.

`datatype`

must be one of

`I16`

,`I32`

, or`I64`

.,`Dd`

,`Qn`

`Qm`

are the destination vector, the first operand vector, and the second operand vector.

- Reference: