SIMD ISAReturn TypeNameArgumentsInstruction Group
Neonint16x4_tvmls_s16(int16x4_t a, int16x4_t b, int16x4_t c)Vector arithmetic / Multiply / Multiply-accumulate
Description
Multiply-Subtract from accumulator (vector). This instruction multiplies corresponding elements in the vectors of the two source SIMD&FP registers, and subtracts the results from the vector elements of the destination SIMD&FP register.
Results
Vd.4H result
This intrinsic compiles to the following instructions:

MLS Vd.4H,Vn.4H,Vm.4H

Argument Preparation
a register: Vd.4Hb register: Vn.4Hc register: Vm.4H
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;