Intel 64 and IA-32 Architectures Software Developers Manual Volume 2A, Instruction Set Reference, A-M

3-336 Vol. 2
INSTRUCTION SET REFERENCE, A-M
FISTTP—Store Integer with Truncation
Description
FISTTP converts the value in ST into a signed integer using truncation (chop) as
rounding mode, transfers the result to the destination, and pop ST. FISTTP accepts
word, short integer, and long integer destinations.
The following table shows the results obtained when storing various classes of
numbers in integer format.
This instruction’s operation is the same in non-64-bit modes and 64-bit mode.
Operation
DEST ST;
pop ST;
Flags Affected
C1 is cleared; C0, C2, C3 undefined.
Opcode Instruction
64-Bit
Mode
Compat/
Leg Mode Description
DF /1 FISTTP m16int Valid Valid Store ST(0) in m16int with
truncation.
DB /1 FISTTP m32int Valid Valid Store ST(0) in m32int with
truncation.
DD /1 FISTTP m64int Valid Valid Store ST(0) in m64int with
truncation.
Table 3-33. FISTTP Results
ST(0) DEST
−∞ or Value Too Large for DEST Format
F ≤ − 1 − Ι
1<F < +10
F +1+ Ι
+ or Value Too Large for DEST Format
NaN
NOTES:
F Means finite floating-point value.
Ι Means integer.
Indicates floating-point invalid-operation (#IA) exception.