3-127
INSTRUCTION SET REFERENCE
CVTSI2SS—Scalar Signed INT32 to Single-FP Conversion
Description
The CVTSI2SS instruction converts a signed 32-bit integer from memory or from a 32-bit
integer register to an SP FP number. When the conversion is inexact, rounding is done according
to the MXCSR.
Figure 3-30. Operation of the CVTSI2SS Instruction
Operation
DEST[31-0]= (float) (R/m32);
DEST[63-32]= DEST[63-32];
DEST[95-64]= DEST[95-64];
DEST[127-96]= DEST[127-96];
Intel C/C++ Compiler Intrinsic Equivalent
__m128 _mm_cvt_si2ss(__m128 a, int b)
__m128 _mm_cvtsi32_ss(__m128 a, int b)
Convert the 32-bit integer value b to an SP FP value; the upper three SP FP values are passed
through from a.
OpcodeInstruction
Description
F3,0F,2A,/rCVTSI2SS xmm, r/m32Convert one 32-bit signed integer from Integer Reg/Mem
to one SP FP.
CVTSI2SS xmm1, r/m32
Xmm1
R/m32
Xmm1
Float