Extensions
Forms
8 (4 VEX, 4 EVEX)
Data
Intel XED v2026.08.23

VCVTSI2SS converts a signed 32-bit or 64-bit integer, from a general-purpose register or memory, to a single in bits 31:0, with bits 127:32 from the first source and the register cleared above bit 127. CVTSI2SS covers the rounding above 2^24 and the unsigned conversions, and CVTSI2SD the wait on the merged register and how GCC 14 and Clang 23 choose its first source. The VEX form needs AVX. The EVEX form, with AVX-512F or AVX10.1, has no write mask; what it adds is a rounding mode for a register source, at both sizes, since even a 32-bit integer may not fit a single.

Rounding given in the instruction

{rn-sae}, {rd-sae}, {ru-sae} or {rz-sae} replaces MXCSR.RC and reports no exception. The cases recorded on Zen 5 ran under MXCSR 6600h, which asks for rounding toward zero and leaves the precision exception unmasked:

  • {evex} vcvtsi2ss xmm1, xmm2, eax, {ru-sae} turned 16,777,217 into 16,777,218, and {rn-sae} turned the same value from RCX into 16,777,216, the even neighbour;
  • neither raised #XM nor set PE, although both results are inexact.

The memory forms have no rounding operand and follow MXCSR: a 64-bit integer below -2^62 was rounded toward zero under FFC0h and set PE. And memory is read as an integer: the four bytes of 1.0f, 3F800000h, became 1,065,353,216.0.

In compiled code

In our builds at -O2 with -march=x86-64-v3, converting an array of long to float stays one conversion per element: GCC 14 zeroes XMM1 before the loop and runs vcvtsi2ss xmm0, xmm1, qword ptr [...] for each, while Clang 23 converts from memory with XMM15 as the first source and joins four results with VINSERTPS 10h, 20h and 30h. With -march=x86-64-v4 both switch to the packed VCVTQQ2PS. _mm_cvt_roundi32_ss and _mm_cvt_roundi64_ss give the rounding forms, such as vcvtsi2ss xmm0, xmm0, edi, {ru-sae}.

AMD’s latency spreadsheet for Zen 5 gives the VEX and EVEX rows alike two macro-ops for a register source and one for memory, with a latency of 3 cycles; its rows for the legacy CVTSI2SS give no latency.

Forms

Every encoding of VCVTSI2SS that Intel XED knows, one row per XED instruction form (iform). How to read the notation.
InstructionEncodingRequires
VCVTSI2SS xmm, xmm, m32 VCVTSI2SS_XMMdq_XMMdq_MEMdVEX.LIG.F3.0F.W0 2A /rAVX
VCVTSI2SS xmm, xmm, r32 VCVTSI2SS_XMMdq_XMMdq_GPR32dVEX.LIG.F3.0F.W0 2A /rAVX
VCVTSI2SS xmm, xmm, m64 64-bit mode only VCVTSI2SS_XMMdq_XMMdq_MEMqVEX.LIG.F3.0F.W1 2A /rAVX
VCVTSI2SS xmm, xmm, r64 64-bit mode only VCVTSI2SS_XMMdq_XMMdq_GPR64qVEX.LIG.F3.0F.W1 2A /rAVX
VCVTSI2SS xmm, xmm, r32, {er} VCVTSI2SS_XMMf32_XMMf32_GPR32i32_AVX512EVEX.LIG.F3.0F.W0 2A /rAVX10.1 or AVX512F
VCVTSI2SS xmm, xmm, m32 VCVTSI2SS_XMMf32_XMMf32_MEMi32_AVX512EVEX.LIG.F3.0F.W0 2A /rAVX10.1 or AVX512F
VCVTSI2SS xmm, xmm, r64, {er} 64-bit mode only VCVTSI2SS_XMMf32_XMMf32_GPR64i64_AVX512EVEX.LIG.F3.0F.W1 2A /rAVX10.1 or AVX512F
VCVTSI2SS xmm, xmm, m64 64-bit mode only VCVTSI2SS_XMMf32_XMMf32_MEMi64_AVX512EVEX.LIG.F3.0F.W1 2A /rAVX10.1 or AVX512F

Latency and throughput

What the scheduling models of LLVM 23.1.2 give for each form, not measurements: latency / reciprocal throughput in cycles, the ports under them. A row is a model, or models that agree; a dash, a form that its processors lack. Memory forms: latency from the address, ports without the load and store units. Which processors each model covers.
Modelxmm, xmm, m32xmm, xmm, r32
xmm, xmm, r32, {er}
xmm, xmm, m64xmm, xmm, r64
xmm, xmm, r64, {er}
Sandy Bridge10 / 1p155 / 2p1510 / 1p155 / 2p15
Haswell, Broadwell9 / 1p14 / 1p159 / 1p15 / 2p15
Skylake10 / 0.5p015 / 1p01510 / 0.5p016 / 2p015
Skylake-SP, Ice Lake9 / 1p15 / 1p0159 / 1p16 / 2p015
Alder Lake, Sapphire Rapids11 / 0.5p017 / 1p01512 / 1p0158 / 2p015
Lunar Lake10 / 2V0 V18 / 2V0 V1 p1 p3 p511 / 2V0 V1 V2 V39 / 2V0 V1 V2 V3 p1 p3 p5
Piledriver9 / 1.5FPCVT FPU014 / 1FPCVT FPSTO FPU09 / 1.5FPCVT FPU014 / 1FPCVT FPSTO FPU0
Zen, Zen 212 / 1FPU35 / 1FPU312 / 1FPU35 / 1FPU3
Zen 3, Zen 410 / 1FP2 FP34 / 11FP2 FP310 / 1FP2 FP34 / 11FP2 FP3
Jaguar9 / 1FPU110 / 1FPU1 STC9 / 1FPU110 / 1FPU1 STC
  1. Zen 4 model: AMD's spreadsheets give latency 3 for Zen 4 and Zen 5 (AMD 57647, row 1044; AMD 58455, row 1068).

Data flow

Where the elements of the sources go, element 0 on the right; results that depend on a control value are drawn for an example. How to read.

Scalar: only the low single is computed; the other singles come from xmm2.
VCVTSI2SS: the low elementResult single 0 is computed from r32; singles 3 to 1 are those of xmm2. Result singles 3 to 0: a3, a2, a1, r0.0123xmm2ar0a1a2a3xmm10r32or r64, m32, m64b

Result single 0 is computed from r32; singles 3 to 1 are those of xmm2. Result singles 3 to 0: a3, a2, a1, r0.

Operation

What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.

xmm1.f32[0] = to_f32(signed(src3))
for i in range(1, 4):
    xmm1.d[i] = xmm2.d[i]
# {er}: the form's rounding, not MXCSR.RC, and no flags
# xmm1 is zeroed from bit 128 up

Run on AMD Zen 5 (EPYC 9645): 12 cases.

Operands

What each form reads and writes, as Intel XED records it: the operands of its syntax, in order, and the implicit ones that the syntax does not name. How to read.
OperandKindAction
VCVTSI2SS xmm, xmm, r/m32 VCVTSI2SS xmm, xmm, r/m64 64-bit mode only VCVTSI2SS xmm, xmm, r/m32, {er} VCVTSI2SS xmm, xmm, r/m64, {er} 64-bit mode only
xmmexplicitwrite
xmmexplicitread
r/m32/64explicitread

Flags

None: XED records no flag that the forms test or change.

Exceptions

The exception class is XED's name for the set of exception conditions that a form follows. How to read.

VEX forms
avx-type-3
EVEX forms
AVX512-E3NF

Attributes

What else XED records about the forms. How to read.

All forms
follows MXCSR

Intrinsics

The C intrinsics of Clang 23.1.2 that compile to VCVTSI2SS, each with the form it compiles to and the Clang options it needs. The forms come from compiling every intrinsic and decoding the result with Intel XED; all intrinsics A–Z explains the method.

IntrinsicCompiles to
_mm_cvt_roundi32_ss __m128 _mm_cvt_roundi32_ss(__m128 A, int B, const int R)

VCVTSI2SS xmm, xmm, r32, {er} EVEX.LIG -mavx512f

_mm_cvt_roundi64_ss __m128 _mm_cvt_roundi64_ss(__m128 A, long long B, const int R)

VCVTSI2SS xmm, xmm, r64, {er} EVEX.LIG -mavx512f

_mm_cvt_roundsi32_ss __m128 _mm_cvt_roundsi32_ss(__m128 A, int B, const int R)

VCVTSI2SS xmm, xmm, r32, {er} EVEX.LIG -mavx512f

_mm_cvt_roundsi64_ss __m128 _mm_cvt_roundsi64_ss(__m128 A, long long B, const int R)

VCVTSI2SS xmm, xmm, r64, {er} EVEX.LIG -mavx512f

_mm_cvt_si2ss __m128 _mm_cvt_si2ss(__m128 __a, int __b)

VCVTSI2SS xmm, xmm, r32 VEX.LIG -mavxwith AVX enabled

_mm_cvtsi32_ss __m128 _mm_cvtsi32_ss(__m128 __a, int __b)

VCVTSI2SS xmm, xmm, r32 VEX.LIG -mavxwith AVX enabled

_mm_cvtsi64_ss __m128 _mm_cvtsi64_ss(__m128 __a, long long __b)

VCVTSI2SS xmm, xmm, r64 VEX.LIG -mavxwith AVX enabled

CPUID and processors

Each form belongs to an XED ISA set. A form can be used when the processor reports every CPUID bit of one of its ISA set's alternatives.

CPUID requirements and processors of the XED ISA sets above. Alternatives are separated by “or”; processors follow XED’s chip model, whose AMD processors end with Zen 2, and the CPU data of this site for Zen 3 to Zen 6.

More AVX instructions

All 253 AVX instructions

More AVX10.1 instructions

All 686 AVX10.1 instructions

Sources

  1. Intel XED v2026.08.23 (commit 0bcb6237345c): forms, encodings, operands, flags, exception classes, attributes, ISA sets, CPUID bits and chip model.
  2. The CPU data of x86-64.net: Zen 3 to Zen 6, from GCC’s -march feature sets and AMD’s Processor Programming References, which the page of each processor cites.
  3. Clang's x86 intrinsic headers, LLVM 23.1.2 (commit 85ac56026243): the intrinsics, their signatures and doc comments, and the Clang of that release, which compiled each of them.
  4. LLVM 23.1.2's x86 scheduling models (commit 85ac56026243): the latency, reciprocal throughput and ports of each form, as llvm-mca reports them.
  5. Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-093, September 2026): Volume 2A, page 3-238 (CVTSI2SS)
  6. Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 1 (253665-093, September 2026)
  7. Intel Advanced Vector Extensions 10.2 Architecture Specification, revision 7.0 (361050-007, April 2026)
  8. Software Optimization Guide for the AMD Zen5 Microarchitecture (58455, rev. 1.00, August 2024), Wayback Machine copy of AMD's ZIP

The tables are derived from Intel XED, Copyright Intel Corporation, licensed under the Apache License 2.0; x86-64.net converted and reformatted them. The intrinsics and their signatures come from Clang and the timings from LLVM's scheduling models, both part of the LLVM Project, licensed under the Apache License 2.0 with LLVM Exceptions. The text is our own.