3-185
INSTRUCTION SET REFERENCE
FCOMI/FCOMIP/
FUCOMI/FUCOMIPCompare Real and Set
EFLAGS (Continued)
FPU Flags Affected
C1
Set to 0 if stack underflow occurred; otherwise, cleared to 0.
C0, C2, C3
Not affected.
Floating-Point Exceptions
#IS
Stack underflow occurred.
#IA
(FCOMI or FCOMIP instruction) One or both operands are NaN values or
have unsupported formats.
(FUCOMI or FUCOMIP instruction) One or both operands are sNaN
values (but not qNaNs) or have undefined formats. Detection of a qNaN
value does not raise an invalid-operand exception.
Protected Mode Exceptions
#NM
EM or TS in CR0 is set.
Real-Address Mode Exceptions
#NM
EM or TS in CR0 is set.
Virtual-8086 Mode Exceptions
#NM
EM or TS in CR0 is set.