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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

INSTRUCTION SET REFERENCE - FMA<br />

VFMSUBADD132PD/VFMSUBADD213PD/VFMSUBADD231PD — Fused Multiply-Alternating<br />

Subtract/Add of Packed Double-Precision Floating-Point Values<br />

Opcode/<br />

<strong>Instruction</strong><br />

VEX.DDS.128.66.0F38.W1<br />

97 /r<br />

VFMSUBADD132PD xmm0,<br />

xmm1, xmm2/m128<br />

VEX.DDS.128.66.0F38.W1<br />

A7 /r<br />

VFMSUBADD213PD xmm0,<br />

xmm1, xmm2/m128<br />

VEX.DDS.128.66.0F38.W1<br />

B7 /r<br />

VFMSUBADD231PD xmm0,<br />

xmm1, xmm2/m128<br />

VEX.DDS.256.66.0F38.W1<br />

97 /r<br />

VFMSUBADD132PD ymm0,<br />

ymm1, ymm2/m256<br />

VEX.DDS.256.66.0F38.W1<br />

A7 /r<br />

VFMSUBADD213PD ymm0,<br />

ymm1, ymm2/m256<br />

VEX.DDS.256.66.0F38.W1<br />

B7 /r<br />

VFMSUBADD231PD ymm0,<br />

ymm1, ymm2/m256<br />

Description<br />

Op/<br />

En<br />

64/32<br />

-bit<br />

Mode<br />

CPUID<br />

Feature<br />

Flag<br />

Description<br />

A V/V FMA Multiply packed double-precision floating-point values from xmm0 and<br />

xmm2/mem, subtract/add elements in xmm1 and put result in xmm0.<br />

A V/V FMA Multiply packed double-precision floating-point values from xmm0 and<br />

xmm1, subtract/add elements in xmm2/mem and put result in xmm0.<br />

A V/V FMA Multiply packed double-precision floating-point values from xmm1 and<br />

xmm2/mem, subtract/add elements in xmm0 and put result in xmm0.<br />

A V/V FMA Multiply packed double-precision floating-point values from ymm0 and<br />

ymm2/mem, subtract/add elements in ymm1 and put result in ymm0.<br />

A V/V FMA Multiply packed double-precision floating-point values from ymm0 and<br />

ymm1, subtract/add elements in ymm2/mem and put result in ymm0.<br />

A V/V FMA Multiply packed double-precision floating-point values from ymm1 and<br />

ymm2/mem, subtract/add elements in ymm0 and put result in ymm0.<br />

<strong>Instruction</strong> Operand Encoding<br />

Op/En Operand 1 Operand 2 Operand 3 Operand 4<br />

A ModRM:reg (r, w) VEX.vvvv (r) ModRM:r/m (r) NA<br />

VFMSUBADD132PD: Multiplies the two or four packed double-precision floating-point values from the first source<br />

operand to the two or four packed double-precision floating-point values in the third source operand. From the infinite<br />

precision intermediate result, subtracts the odd double-precision floating-point elements and adds the even<br />

double-precision floating-point values in the second source operand, performs rounding and stores the resulting<br />

two or four packed double-precision floating-point values to the destination operand (first source operand).<br />

VFMSUBADD213PD: Multiplies the two or four packed double-precision floating-point values from the second<br />

source operand to the two or four packed double-precision floating-point values in the first source operand. From<br />

the infinite precision intermediate result, subtracts the odd double-precision floating-point elements and adds the<br />

even double-precision floating-point values in the third source operand, performs rounding and stores the resulting<br />

two or four packed double-precision floating-point values to the destination operand (first source operand).<br />

VFMSUBADD231PD: Multiplies the two or four packed double-precision floating-point values from the second<br />

source operand to the two or four packed double-precision floating-point values in the third source operand. From<br />

6-18 Ref. # 319433-014

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

Saved successfully!

Ooh no, something went wrong!