SIMD ISAReturn TypeNameArgumentsInstruction Group
Neonint32x2_tvmla_s32(int32x2_t a, int32x2_t b, int32x2_t c)Vector arithmetic / Multiply / Multiply-accumulate
Description
Multiply-Add to accumulator (vector). This instruction multiplies corresponding elements in the vectors of the two source SIMD&FP registers, and accumulates the results with the vector elements of the destination SIMD&FP register.
Results
Vd.2S result
This intrinsic compiles to the following instructions:

MLA Vd.2S,Vn.2S,Vm.2S

Argument Preparation
a register: Vd.2Sb register: Vn.2Sc register: Vm.2S
Architectures
v7, A32, A64

Operation

CheckFPAdvSIMDEnabled64();
bits(datasize) operand1 = V[n];
bits(datasize) operand2 = V[m];
bits(datasize) operand3 = V[d];
bits(datasize) result;
bits(esize) element1;
bits(esize) element2;
bits(esize) product;

for e = 0 to elements-1
    element1 = Elem[operand1, e, esize];
    element2 = Elem[operand2, e, esize];
    product = (UInt(element1) * UInt(element2))<esize-1:0>;
    if sub_op then
        Elem[result, e, esize] = Elem[operand3, e, esize] - product;
    else
        Elem[result, e, esize] = Elem[operand3, e, esize] + product;

V[d] = result;