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

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

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

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

CVTTSD2SI Convert Scalar Double-Precision Floating-Point<br />

to Signed Doubleword of Quadword Integer,<br />

Truncated<br />

Converts a double-precision floating-point value in the low-order <strong>64</strong> bits of an XMM<br />

register or a <strong>64</strong>-bit memory location to a 32-bit or <strong>64</strong>-bit signed integer value and<br />

writes the converted value in a general-purpose register.<br />

Mnemonic Opcode Description<br />

CVTTSD2SI reg32, xmm/mem<strong>64</strong> F2 0F 2C /r Converts scalar double-precision floating-point value in an XMM<br />

register or <strong>64</strong>-bit memory location to a doubleword signed<br />

integer value in a general-purpose register. Inexact results are<br />

truncated.<br />

CVTTSD2SI reg<strong>64</strong>, xmm/mem<strong>64</strong> F2 0F 2C /r Converts scalar double-precision floating-point value in an XMM<br />

register or <strong>64</strong>-bit memory location to a quadword signed integer<br />

value in a general-purpose register. Inexact results are truncated.<br />

reg32 xmm2/mem<strong>64</strong><br />

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

reg<strong>64</strong> xmm2/mem<strong>64</strong><br />

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

with REX prefix<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) or<br />

quadword value (–2 63 to +2 63 – 1), the instruction returns the indefinite integer value<br />

96 CVTTSD2SI<br />

convert<br />

convert<br />

cvttsd2si.eps

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

Saved successfully!

Ooh no, something went wrong!