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.

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

CVTPS2DQ Convert Packed Single-Precision Floating-Point<br />

to Packed Doubleword Integers<br />

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

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

converted values in another XMM register.<br />

Mnemonic Opcode Description<br />

CVTPS2DQ xmm1, xmm2/mem<strong>128</strong> 66 0F 5B /r Converts four packed single-precision floating-point values<br />

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

packed doubleword integers in the destination XMM<br />

register.<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), the instruction returns the 32-bit indefinite integer<br />

value (8000_0000h) when the invalid-operation exception (IE) is masked.<br />

Related Instructions<br />

CVTDQ2PS, CVTPI2PS, CVTPS2PI, CVTSI2SS, CVTSS2SI, CVTTPS2DQ,<br />

CVTTPS2PI, CVTTSS2SI<br />

rFLAGS Affected<br />

None<br />

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

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

31<br />

0<br />

127 96 95 <strong>64</strong> 63 32 31<br />

0<br />

convert<br />

convert<br />

convert<br />

convert<br />

cvtps2dq.eps<br />

CVTPS2DQ 59

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

Saved successfully!

Ooh no, something went wrong!