03.03.2013 Views

Intel® Architecture Instruction Set Extensions Programming Reference

Intel® Architecture Instruction Set Extensions Programming Reference

Intel® Architecture Instruction Set Extensions Programming Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Operation<br />

INSTRUCTION SET REFERENCE - FMA<br />

In the operations below, "+", "-", and "*" symbols represent addition, subtraction, and multiplication operations<br />

with infinite precision inputs and outputs (no rounding).<br />

VFMSUB132SD DEST, SRC2, SRC3<br />

DEST[63:0] RoundFPControl_MXCSR(DEST[63:0]*SRC3[63:0] - SRC2[63:0])<br />

DEST[127:64] DEST[127:64]<br />

DEST[VLMAX-1:128] 0<br />

VFMSUB213SD DEST, SRC2, SRC3<br />

DEST[63:0] RoundFPControl_MXCSR(SRC2[63:0]*DEST[63:0] - SRC3[63:0])<br />

DEST[127:64] DEST[127:64]<br />

DEST[VLMAX-1:128] 0<br />

VFMSUB231SD DEST, SRC2, SRC3<br />

DEST[63:0] RoundFPControl_MXCSR(SRC2[63:0]*SRC3[63:0] - DEST[63:0])<br />

DEST[127:64] DEST[127:64]<br />

DEST[VLMAX-1:128] 0<br />

Intel C/C++ Compiler Intrinsic Equivalent<br />

VFMSUB132SD: __m128d _mm_fmsub_sd (__m128d a, __m128d b, __m128d c);<br />

VFMSUB213SD: __m128d _mm_fmsub_sd (__m128d a, __m128d b, __m128d c);<br />

VFMSUB231SD: __m128d _mm_fmsub_sd (__m128d a, __m128d b, __m128d c);<br />

SIMD Floating-Point Exceptions<br />

Overflow, Underflow, Invalid, Precision, Denormal<br />

Other Exceptions<br />

See Exceptions Type 3<br />

Ref. # 319433-014 6-31

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!