__lsx_vfadd_d

LSX intrinsic · group: Floating Point Computation

Synopsis

__m128d __lsx_vfadd_d (__m128d a, __m128d b)
#include <lsxintrin.h>
Instruction: vfadd.d vr, vr, vr
CPU Flags: LSX

Description

Add corresponding double precision floating point elements in a and b.

Operation

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

Tested on real machine.

Latency and Throughput

CPU µarch Latency Throughput (IPC)
3C5000 LA464 5 2
3A6000 LA664 3 4
3C6000 LA664 3 4
2K1000LA LA264 4 1
2K3000 LA364E 4 1

All intrinsics in alphabetical order