3-133
INSTRUCTION SET REFERENCE
CVTTPS2PIĀPacked Single-FP to Packed INT32 Conversion
(Truncate)
Description
The CVTTPS2PI instruction converts the lower two SP FP numbers in xmm/m64 to two 32-bit
signed integers in mm. If the conversion is inexact, the truncated result is returned. If the
converted result(s) is/are larger than the maximum signed 32 bit value, the Integer Indefinite
value (0x80000000) will be returned.
Figure 3-32. Operation of the CVTTPS2PI Instruction
Operation
DEST[31-0]= (int) (SRC/m64[31-0]);
DEST[63-32]= (int) (SRC/m64[63-32]);
OpcodeInstruction
Description
0F,2C,/rCVTTPS2PI mm, xmm/m64Convert lower two SP FP from XMM/Mem to two 32-bit
signed integers in MM using truncate.
Mm1
Xmm1/
m64
CVTTPS2PI mm1, xmm1/m64
1.0
Mm1
Int
Int