3-184
INSTRUCTION SET REFERENCE
FCOMI/FCOMIP/
FUCOMI/FUCOMIPCompare Real and Set
EFLAGS (Continued)
Intel Architecture Compatibility
The FCOMI/FCOMIP/FUCOMI/FUCOMIP instructions were introduced to the Intel Architec-
ture in the Pentium
®
Pro processor family and are not available in earlier Intel Architecture
processors.
Operation
CASE (relation of operands) OF
ST(0) > ST(i):ZF, PF, CF
<
000;
ST(0) < ST(i):ZF, PF, CF
<
001;
ST(0) = ST(i):ZF, PF, CF
<
100;
ESAC;
IF instruction is FCOMI or FCOMIP
THEN
IF ST(0) or ST(i) = NaN or unsupported format
THEN
#IA
IF FPUControlWord.IM = 1
THEN
ZF, PF, CF
<
111;
FI;
FI;
FI;
IF instruction is FUCOMI or FUCOMIP
THEN
IF ST(0) or ST(i) = QNaN, but not SNaN or unsupported format
THEN
ZF, PF, CF
<
111;
ELSE (* ST(0) or ST(i) is SNaN or unsupported format *)
#IA;
IF FPUControlWord.IM = 1
THEN
ZF, PF, CF
<
111;
FI;
FI;
FI;
IF instruction is FCOMIP or FUCOMIP
THEN
PopRegisterStack;
FI;