25.02.2015 Views

AMD 64-Bit Technology - ECE User Home Pages

AMD 64-Bit Technology - ECE User Home Pages

AMD 64-Bit Technology - ECE User Home Pages

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

26568—Rev. 3.02—August 2002<br />

<strong>AMD</strong> <strong>64</strong>-<strong>Bit</strong> <strong>Technology</strong><br />

CVTSD2SI<br />

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

to Signed Doubleword or Quadword Integer<br />

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

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

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

Mnemonic Opcode Description<br />

CVTSD2SI reg32, xmm/mem<strong>64</strong> F2 0F 2D /r Converts a packed double-precision floating-point value in an<br />

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

integer in a general-purpose register.<br />

CVTSD2SI reg<strong>64</strong>, xmm/mem<strong>64</strong> F2 0F 2D /r Converts a packed double-precision floating-point value in an<br />

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

in a general-purpose register.<br />

reg32<br />

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

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

convert<br />

reg<strong>64</strong><br />

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

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

convert<br />

with REX prefix<br />

cvtsd2si.eps<br />

If the result of the conversion is an inexact value, the value is rounded as specified by<br />

the rounding control bits (RC) in the MXCSR register. If the floating-point value is a<br />

NaN, infinity, or if the result of the conversion is larger than the maximum signed<br />

doubleword (–2 31 to +2 31 – 1) or quadword value (–2 63 to +2 63 – 1), the instruction<br />

returns the indefinite integer value (8000_0000h for 32-bit integers,<br />

CVTSD2SI 67

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

Saved successfully!

Ooh no, something went wrong!