09.01.2013 Views

AMD x86-64 Architecture Programmer's Manual, Volume 4, 128-Bit ...

AMD x86-64 Architecture Programmer's Manual, Volume 4, 128-Bit ...

AMD x86-64 Architecture Programmer's Manual, Volume 4, 128-Bit ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

<strong>AMD</strong><strong>64</strong> Technology 26568—Rev. 3.05—September 2003<br />

CVTTPD2DQ Convert Packed Double-Precision Floating-Point<br />

to Packed Doubleword Integers, Truncated<br />

Converts two packed double-precision floating-point values in an XMM register or a<br />

<strong>128</strong>-bit memory location to two packed 32-bit signed integer values and writes the<br />

converted values in the low-order <strong>64</strong> bits of another XMM register. The high-order <strong>64</strong><br />

bits of the destination XMM register are cleared to all 0s.<br />

Mnemonic Opcode Description<br />

CVTTPD2DQ xmm1, xmm2/mem<strong>128</strong> 66 0F E6 /r Converts packed double-precision floating-point values in<br />

an XMM register or <strong>128</strong>-bit memory location to packed<br />

doubleword integer values in the destination XMM register.<br />

Inexact results are truncated.<br />

If the result of the conversion is an inexact value, the value is truncated (rounded<br />

toward zero). If the floating-point value is a NaN, infinity, or if the result of the<br />

conversion is larger than the maximum signed doubleword (–2 31 to +2 31 –1), the<br />

instruction returns the 32-bit indefinite integer value (8000_0000h) when the invalidoperation<br />

exception (IE) is masked.<br />

Related Instructions<br />

CVTDQ2PD, CVTPD2DQ, CVTPD2PI, CVTPI2PD, CVTSD2SI, CVTSI2SD,<br />

CVTTPD2PI, CVTTSD2SI<br />

rFLAGS Affected<br />

None<br />

xmm1 xmm2/mem<strong>128</strong><br />

127 <strong>64</strong> 63 32<br />

31<br />

0<br />

0<br />

84 CVTTPD2DQ<br />

127 <strong>64</strong> 63 0<br />

convert<br />

convert<br />

cvttpd2dq.eps

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

Saved successfully!

Ooh no, something went wrong!