FTST
TEST
stableVMJITAOTinstruction
Encodings
Measured cost
Description#
Compares the value in the ST(0) register with 0.0 and sets the condition code flags C0, C2, and C3 in the FPU status word according to the results (see table below).
FTST Results
Operation#
CASE (relation of operands) OF
Not comparable: C3, C2, C0 := 111;
ST(0) > 0.0: C3, C2, C0 := 000;
ST(0) < 0.0: C3, C2, C0 := 001;
ST(0) = 0.0: C3, C2, C0 := 100;
ESAC;
FPU Flags Affected
C1 Set to 0.
C0, C2, C3 See Table 3-42.
Floating-Point Exceptions#
#IS Stack underflow occurred.
#IA The source operand is a NaN value or is in an unsupported format.
#D The source operand is a denormal value.
Exceptions
Protected mode
Real address mode
Virtual-8086 mode
Compatibility mode
64-bit mode
Sources