Opcode/Instruction | Op/En | 64/32-bit Mode | CPUID Feature Flag | Description |
---|---|---|---|---|

F2 0F E6 /r CVTPD2DQ |
RM | V/V | SSE2 | Convert two packed double-precision floating-point values from xmm2/m128 to two packed signed doubleword integers in xmm1. |

VEX.128.F2.0F.WIG E6 /r VCVTPD2DQ xmm1, xmm2/m128 |
RM | V/V | AVX | Convert two packed double-precision floating-point values in xmm2/mem to two signed doubleword integers in xmm1. |

VEX.256.F2.0F.WIG E6 /r VCVTPD2DQ xmm1, ymm2/m256 |
RM | V/V | AVX | Convert four packed double-precision floating-point values in ymm2/mem to four signed doubleword integers in xmm1. |

Op/En | Operand 1 | Operand 2 | Operand 3 | Operand 4 |

RM | ModRM:reg (w) | ModRM:r/m (r) | NA | NA |

Converts two packed double-precision floating-point values in the source operand (second operand) to two packed signed doubleword integers in the destination operand (first operand).

The source operand can be an XMM register or a 128-bit memory location. The destination operand is an XMM register. The result is stored in the low quadword of the destination operand and the high quadword is cleared to all 0s.

When a conversion is inexact, the value returned is rounded according to the rounding control bits in the MXCSR register. If a converted result is larger than the maximum signed doubleword integer, the floating-point invalid exception is raised, and if this exception is masked, the indefinite integer value (80000000H) is returned.

In 64-bit mode, use of the REX.R prefix permits this instruction to access additional registers (XMM8-XMM15).

128-bit Legacy SSE version: The source operand is an XMM register or 128- bit memory location. The destination operation is an XMM register. Bits[127:64] of the destination XMM register are zeroed. However, the upper bits (VLMAX-1:128) of the corresponding YMM register destination are unmodified.

VEX.128 encoded version: The source operand is an XMM register or 128- bit memory location. The destination operation is a YMM register. The upper bits (VLMAX-1:64) of the corresponding YMM register destination are zeroed.

VEX.256 encoded version: The source operand is a YMM register or 256- bit memory location. The destination operation is an XMM register. The upper bits (255:128) of the corresponding YMM register destination are zeroed.

Note: In VEX-encoded versions, VEX.vvvv is reserved and must be 1111b, otherwise instructions will #UD.

SRC

DEST

0

X3

X2

X1

X0

**CVTPD2DQ (128-bit Legacy SSE version)**

DEST[31:0] ← Convert_Double_Precision_Floating_Point_To_Integer(SRC[63:0]) DEST[63:32] ← Convert_Double_Precision_Floating_Point_To_Integer(SRC[127:64]) DEST[127:64] ← 0 DEST[VLMAX-1:128] (unmodified)

**VCVTPD2DQ (VEX.128 encoded version)**

DEST[31:0] ← Convert_Double_Precision_Floating_Point_To_Integer(SRC[63:0]) DEST[63:32] ← Convert_Double_Precision_Floating_Point_To_Integer(SRC[127:64]) DEST[VLMAX-1:64] ← 0

**VCVTPD2DQ (VEX.256 encoded version)**

DEST[31:0] ← Convert_Double_Precision_Floating_Point_To_Integer(SRC[63:0]) DEST[63:32] ← Convert_Double_Precision_Floating_Point_To_Integer(SRC[127:64]) DEST[95:64] ← Convert_Double_Precision_Floating_Point_To_Integer(SRC[191:128]) DEST[127:96] ← Convert_Double_Precision_Floating_Point_To_Integer(SRC[255:192) DEST[255:128]← 0

CVTPD2DQ:

__m128i _mm_cvtpd_epi32 (__m128d src)

CVTPD2DQ:

__m128i _mm256_cvtpd_epi32 (__m256d src)

Invalid, Precision.

See Exceptions Type 2; additionally

#UD | If VEX.vvvv ≠ 1111B. |