3-119
INSTRUCTION SET REFERENCE
CVTPI2PS—Packed Signed INT32 to Packed Single-FP Conversion
Description
The CVTPI2PS instruction converts signed 32-bit integers to SP FP numbers. When the conver-
sion is inexact, rounding is done according to MXCSR. A #MF fault is signaled if there is a
pending x87 fault.
Figure 3-28. Operation of the CVTPI2PS Instruction
Operation
DEST[31-0]= (float) (SRC/m64[31-0]);
DEST[63-32]= (float) (SRC/m64[63-32]);
DEST[95-64]= DEST[95-64];
DEST[127-96]= DEST[127-96];
Intel C/C++ Compiler Intrinsic Equivalent
__m128 _mm_cvt_pi2ps(__m128 a, __m64 b)
__m128 _mm_cvtpi32_ps(__m128 a, __m64 b)
Convert the two 32-bit integer values in packed form in b to two SP FP values; the upper two
SP FP values are passed through from a.
OpcodeInstruction
Description
0F,2A,/rCVTPI2PS xmm, mm/m64Convert two 32-bit signed integers from MM/Mem to two SP
FP.
Xmm1
Float
Float
Mm1/
m64
CVTPI2PS xmm1, xmm1/m64
1.0
Xmm1