<<<    Index    >>>
3-91
INSTRUCTION SET REFERENCE
CMPSS—Scalar Single-FP Compare (Continued)
The following table shows the different comparison types:
NOTE:
*The greater-than, greater-than-or-equal, not-greater-than, and not-greater-than-or-equal relations are not
directly implemented in hardware.
Predi-
cate
Description
RelationEmulationimm8 
Encoding
Result if 
NaN 
Operand
qNaN 
Operand
Signals 
Invalid
eqequal
xmm1 == xmm2
000BFalseNo
ltless-than
xmm1 < xmm2
001BFalseYes
leless-than-or-equalxmm1 <= xmm2
010BFalseYes
greater than
xmm1 > xmm2swap, 
protect, lt
FalseYes
greater-than-or-equalxmm1 >= xmm2swap 
protect, le
FalseYes
unordunordered
xmm1 ? xmm2
011BTrueNo
neqnot-equal
!(xmm1 == xmm2)
100BTrueNo
nltnot-less-than
!(xmm1 < xmm2)
101BTrueYes
nlenot-less-than-or-equal!(xmm1 <= xmm2)
110BTrueYes
not-greater-than
!(xmm1 > xmm2)swap, 
protect, nlt
TrueYes
not-greater-than-or-equal!(xmm1 >= xmm2)swap, 
protect, nle
TrueYes
ordordered
!(xmm1 ? xmm2)
111BFalseNo
<<<    Index    >>>