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.

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

CVTTSS2SI Convert Scalar Single-Precision Floating-Point<br />

to Signed Doubleword or Quadword Integer,<br />

Truncated<br />

Converts a single-precision floating-point value in the low-order 32 bits of an XMM<br />

register or a 32-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 />

CVTTSS2SI reg32, xmm/mem32 F3 0F 2C /r Converts scalar single-precision floating-point value in an XMM<br />

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

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

truncated.<br />

CVTTSS2SI reg<strong>64</strong>, xmm/mem32 F3 0F 2C /r Converts scalar single-precision floating-point value in an XMM<br />

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

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

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

31 0 127 32 31 0<br />

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

63 0 127 32 31 0<br />

with REX prefix<br />

cvttss2si.eps<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 />

convert<br />

convert<br />

CVTTSS2SI 99

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

Saved successfully!

Ooh no, something went wrong!