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 />

CVTSS2SI<br />

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

to Signed Doubleword or Quadword Integer<br />

The CVTSS2SI instruction converts a single-precision floating-point value in the loworder<br />

32 bits of an XMM register or a 32-bit memory location to a 32-bit or <strong>64</strong>-bit<br />

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

Mnemonic Opcode Description<br />

CVTSS2SI reg32, xmm2/mem32 F3 0F 2D /r Converts a single-precision floating-point value in an XMM<br />

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

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

CVTSS2SI reg<strong>64</strong>, xmm2/mem32 F3 0F 2D /r Converts a single-precision floating-point value in an XMM<br />

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

in a general-purpose register.<br />

reg32<br />

xmm2/mem32<br />

31 0 127 32 31 0<br />

convert<br />

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

xmm2/mem32<br />

63 0 127 32 31 0<br />

convert<br />

with REX prefix<br />

cvtss2si.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 />

CVTSS2SI 81

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

Saved successfully!

Ooh no, something went wrong!