3-130
INSTRUCTION SET REFERENCE
CVTSS2SIĀScalar Single-FP to Signed INT32 Conversion
Description
The CVTSS2SI instruction converts an SP FP number to a signed 32-bit integer and returns it
in the 32-bit integer register. When the conversion is inexact, the rounded value according to the
MXCSR is returned. If the converted result is larger than the maximum signed 32 bit integer, the
Integer Indefinite value (0x80000000) will be returned.
Figure 3-31. Operation of the CVTSS2SI Instruction
Operation
r32 = (int) (SRC/m32[31-0]);
Intel C/C++ Compiler Intrinsic Equivalent
int_mm_cvt_ss2si(__m128 a)
int_mm_cvtss_si32(__m128 a)
Convert the lower SP FP value of a to a 32-bit integer according to the current rounding mode.
OpcodeInstruction
Description
F3,0F,2D,/rCVTSS2SI r32, xmm/m32Convert one SP FP from XMM/Mem to one 32 bit signed
integer using rounding mode specified by MXCSR, and
move the result to an integer register.
Xmm1/
m32
CVTSS2SI r32, xmm1/m32
r32
r32