## VFMADDxxxPD - Fused Multiply ADD xxx Packed DoubleVFMSUBxxxPD - Fused Multiply SUBtract xxx Packed DoubleVFMADDSUBxxxPD - Fused Multiply ADD SUBtract xxx Packed DoubleVFMSUBADDxxxPD - Fused Multiply SUBtract ADD xxx Packed DoubleVFNMADDxxxPD - Fused Negative Multiply ADD xxx Packed DoubleVFNMSUBxxxPD - Fused Negative Multiply SUBtract xxx Packed Double

For each element, performs MUL and ADD/SUB calculation with 3 operands and set the result to the first operand. (returns the result.)

Which operands to MUL, and which operand to ADD/SUB, depend on the order of the numbers (1, 2, 3) in the instruction name. depend on the order of arguments for intrinsic.

????? instruction name odd even
VFMADD213PD (2) * (1) + (3)
VFMADD231PD (2) * (3) + (1)
a * b + c
FMSUB VFMSUB132PD (1) * (3) - (2)
VFMSUB213PD (2) * (1) - (3)
VFMSUB231PD (2) * (3) - (1)
_mm_fmsub_pd
_mm256_fmsub_pd
_mm512_fmsub_pd
a * b - c
FMADDSUB VFMADDSUB132PD (1) * (3) + (2) (1) * (3) - (2)
VFMADDSUB213PD (2) * (1) + (3) (2) * (1) - (3)
VFMADDSUB231PD (2) * (3) + (1) (2) * (3) - (1)
a * b + c a * b - c
FMSUBADD VFMSUBADD132PD (1) * (3) - (2) (1) * (3) + (2)
VFMSUBADD213PD (2) * (1) - (3) (2) * (1) + (3)
VFMSUBADD231PD (2) * (3) - (1) (2) * (3) + (1)
a * b - c a * b + c
VFNMADD213PD - (2) * (1) + (3)
VFNMADD231PD - (2) * (3) + (1)
- a * b + c
FNMSUB VFNMSUB132PD - (1) * (3) - (2)
VFNMSUB213PD - (2) * (1) - (3)
VFNMSUB231PD - (2) * (3) - (1)
_mm_fnmsub_pd
_mm256_fnmsub_pd
_mm512_fnmsub_pd
- a * b - c

_mask_  if k bit is 0, a is copied.
_mask3_  if k bit is 0, c is copied.
_maskz_  if k bit is 0, zero cleared.

x86/x64 SIMD Instruction List  Feedback