SIMD ISAReturn TypeNameArgumentsInstruction Group
Neonfloat64x2_tvfmaq_n_f64(float64x2_t a, float64x2_t b, float64_t n)Scalar arithmetic / Fused multiply-accumulate by scalar
Description
Floating-point fused Multiply-Add to accumulator (vector). This instruction multiplies corresponding floating-point values in the vectors in the two source SIMD&FP registers, adds the product to the corresponding vector element of the destination SIMD&FP register, and writes the result to the destination SIMD&FP register.
Results
Vd.2D result
This intrinsic compiles to the following instructions:

FMLA Vd.2D,Vn.2D,Vm.D[0]

Argument Preparation
a register: Vd.2Db register: Vn.2Dn register: Vm.D[0]
Architectures
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;

for e = 0 to elements-1
    element1 = Elem[operand1, e, esize];
    element2 = Elem[operand2, e, esize];
    if sub_op then element1 = FPNeg(element1);
    Elem[result, e, esize] = FPMulAdd(Elem[operand3, e, esize], element1, element2, FPCR[]);

V[d] = result;