SIMD ISAReturn TypeNameArgumentsInstruction Group
Neonuint8x16_tvabaq_u8(uint8x16_t a, uint8x16_t b, uint8x16_t c)Vector arithmetic / Absolute / Absolute difference and accumulate
Description
Unsigned Absolute difference and Accumulate. This instruction subtracts the elements of the vector of the second source SIMD&FP register from the corresponding elements of the first source SIMD&FP register, and accumulates the absolute values of the results into the elements of the vector of the destination SIMD&FP register.
Results
Vd.16B result
This intrinsic compiles to the following instructions:

UABA Vd.16B,Vn.16B,Vm.16B

Argument Preparation
a register: Vd.16Bb register: Vn.16Bc register: Vm.16B
Architectures
v7, A32, A64

Operation

CheckFPAdvSIMDEnabled64();
bits(datasize) operand1 = V[n];
bits(datasize) operand2 = V[m];
bits(datasize) result;
integer element1;
integer element2;
bits(esize) absdiff;

result = if accumulate then V[d] else Zeros();
for e = 0 to elements-1
    element1 = Int(Elem[operand1, e, esize], unsigned);
    element2 = Int(Elem[operand2, e, esize], unsigned);
    absdiff = Abs(element1 - element2)<esize-1:0>;
    Elem[result, e, esize] = Elem[result, e, esize] + absdiff;
V[d] = result;