__lasx_xvfnmadd_d

LASX intrinsic · group: Fused Multiply-Add

Synopsis

__m256d __lasx_xvfnmadd_d (__m256d a, __m256d b, __m256d c)
#include <lasxintrin.h>
Instruction: xvfnmadd.d xr, xr, xr, xr
CPU Flags: LASX

Description

Compute packed double precision floating point FMA(Fused Multiply-Add): multiply elements in a and b, accumulate to elements in c and store the negated result in dst.

Operation

for (int i = 0; i < 4; i++) {
  dst.fp64[i] = (a.fp64[i] * b.fp64[i] + c.fp64[i]);
}

Latency and Throughput

CPU µarch Latency Throughput (IPC)
3C5000 LA464 5 2
3A6000 LA664 5 2
3C6000 LA664 5 2

All intrinsics in alphabetical order