IA-32 Assembly Language Reference Manual

Compare Real and Pop (fcomp)

fcomp{ls}

Example

Compare stack element 0 with stack element 7. Condition codes contain the result: No compare=111, st 0 greater than st 7=000, st 0 less than st 7=001, equal compare=100, then pop the stack.

fcomp %st(7)