x86 Assembly Language Reference Manual

Comparison Instructions (Floating-Point)

The floating-point comparison instructions operate on floating-point or integer operands.

Table 3–15 Comparison Instructions (Floating-Point)

Solaris Mnemonic 

Intel/AMD Mnemonic 

Description 

Notes 

fcom

FCOM

compare floating-point 

 

fcomi

FCOMI

compare floating-point and set %eflags

 

fcomip

FCOMIP

compare floating-point, set %eflags, and pop

 

fcomp

FCOMP

compare floating-point and pop 

 

fcompp

FCOMPP

compare floating-point and pop twice 

 

ficom

FICOM

compare integer 

 

ficomp

FICOMP

compare integer and pop 

 

ftst

FTST

test floating-point (compare with 0.0) 

 

fucom

FUCOM

unordered compare floating-point 

 

fucomi

FUCOMI

unordered compare floating-point and set %eflags

 

fucomip

FUCOMIP

unordered compare floating-point, set %eflags, and pop

 

fucomp

FUCOMP

unordered compare floating-point and pop 

 

fucompp

FUCOMPP

compare floating-point and pop twice 

 

fxam

FXAM

examine floating-point