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

the directly supported compare operations, in Table 1-1. When swapping operands,<br />

the first source XMM register is overwritten by the result.<br />

Table 1-1. Immediate Operand Values for Compare Operations<br />

Immediate-Byte Value<br />

(bits 2–0)<br />

Related Instructions<br />

CMPPS, CMPSD, CMPSS, COMISD, COMISS, UCOMISD, UCOMISS<br />

rFLAGS Affected<br />

None<br />

Compare Operation Result If NaN Operand<br />

24 CMPPD<br />

QNaN Operand Causes<br />

Invalid Operation Exception<br />

000 Equal FALSE No<br />

001 Less than FALSE Yes<br />

Greater than<br />

(uses swapped operands)<br />

FALSE Yes<br />

010 Less than or equal FALSE Yes<br />

Greater than or equal<br />

(uses swapped operands)<br />

FALSE Yes<br />

011 Unordered TRUE No<br />

100 Not equal TRUE No<br />

101 Not less than TRUE Yes<br />

Not greater than<br />

(uses swapped operands)<br />

TRUE Yes<br />

110 Not less than or equal TRUE Yes<br />

Not greater than or equal<br />

(uses swapped operands)<br />

TRUE Yes<br />

111 Ordered FALSE No

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

Saved successfully!

Ooh no, something went wrong!