Method vaddhn_s16
vaddhn_s16(v128, v128)
Add returning High Narrow. This instruction adds each vector element in the first source SIMD&FP register to the corresponding vector element in the second source SIMD&FP register, places the most significant half of the result into a vector, and writes the vector to the lower or upper half of the destination SIMD&FP register.The results are truncated. For rounded results, see RADDHN.The ADDHN instruction writes the vector to the lower half of the destination register and clears the upper half, while the ADDHN2 instruction writes the vector to the upper half of the destination register without affecting the other bits of the register.Depending on the settings in the CPACR_EL1, CPTR_EL2, and CPTR_EL3 registers, and the current Security state and Exception level, an attempt to execute the instruction might be trapped.
Equivalent instruction: ADDHN Vd.8B,Vn.8H,Vm.8H
Declaration
public static v64 vaddhn_s16(v128 a0, v128 a1)
Parameters
Type | Name | Description |
---|---|---|
v128 | a0 | 128-bit vector a0 |
v128 | a1 | 128-bit vector a1 |
Returns
Type | Description |
---|---|
v64 | 64-bit vector |