Instruction
VCVTSI2SS
Converts a signed 32- or 64-bit integer to single in the low element; the other elements come from the first source.
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
| Instruction | Encoding | Requires |
|---|---|---|
VCVTSI2SS xmm, xmm, m32
VCVTSI2SS_XMMdq_XMMdq_MEMd | VEX.LIG.F3.0F.W0 2A /r | AVX |
VCVTSI2SS xmm, xmm, r32
VCVTSI2SS_XMMdq_XMMdq_GPR32d | VEX.LIG.F3.0F.W0 2A /r | AVX |
VCVTSI2SS xmm, xmm, m64 64-bit mode only
VCVTSI2SS_XMMdq_XMMdq_MEMq | VEX.LIG.F3.0F.W1 2A /r | AVX |
VCVTSI2SS xmm, xmm, r64 64-bit mode only
VCVTSI2SS_XMMdq_XMMdq_GPR64q | VEX.LIG.F3.0F.W1 2A /r | AVX |
VCVTSI2SS xmm, xmm, r32, {er}
VCVTSI2SS_XMMf32_XMMf32_GPR32i32_AVX512 | EVEX.LIG.F3.0F.W0 2A /r | AVX10.1 or AVX512F |
VCVTSI2SS xmm, xmm, m32
VCVTSI2SS_XMMf32_XMMf32_MEMi32_AVX512 | EVEX.LIG.F3.0F.W0 2A /r | AVX10.1 or AVX512F |
VCVTSI2SS xmm, xmm, r64, {er} 64-bit mode only
VCVTSI2SS_XMMf32_XMMf32_GPR64i64_AVX512 | EVEX.LIG.F3.0F.W1 2A /r | AVX10.1 or AVX512F |
VCVTSI2SS xmm, xmm, m64 64-bit mode only
VCVTSI2SS_XMMf32_XMMf32_MEMi64_AVX512 | EVEX.LIG.F3.0F.W1 2A /r | AVX10.1 or AVX512F |
Latency and throughput
| Model | xmm, xmm, m32 | xmm, xmm, r32xmm, xmm, r32, {er} | xmm, xmm, m64 | xmm, xmm, r64xmm, xmm, r64, {er} |
|---|---|---|---|---|
| Sandy Bridge | 10 / 1p15 | 5 / 2p15 | 10 / 1p15 | 5 / 2p15 |
| Haswell, Broadwell | 9 / 1p1 | 4 / 1p15 | 9 / 1p1 | 5 / 2p15 |
| Skylake | 10 / 0.5p01 | 5 / 1p015 | 10 / 0.5p01 | 6 / 2p015 |
| Skylake-SP, Ice Lake | 9 / 1p1 | 5 / 1p015 | 9 / 1p1 | 6 / 2p015 |
| Alder Lake, Sapphire Rapids | 11 / 0.5p01 | 7 / 1p015 | 12 / 1p015 | 8 / 2p015 |
| Lunar Lake | 10 / 2V0 V1 | 8 / 2V0 V1 p1 p3 p5 | 11 / 2V0 V1 V2 V3 | 9 / 2V0 V1 V2 V3 p1 p3 p5 |
| Piledriver | 9 / 1.5FPCVT FPU0 | 14 / 1FPCVT FPSTO FPU0 | 9 / 1.5FPCVT FPU0 | 14 / 1FPCVT FPSTO FPU0 |
| Zen, Zen 2 | 12 / 1FPU3 | 5 / 1FPU3 | 12 / 1FPU3 | 5 / 1FPU3 |
| Zen 3, Zen 4 | 10 / 1FP2 FP3 | 4 / 11FP2 FP3 | 10 / 1FP2 FP3 | 4 / 11FP2 FP3 |
| Jaguar | 9 / 1FPU1 | 10 / 1FPU1 STC | 9 / 1FPU1 | 10 / 1FPU1 STC |
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.
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 upRun on AMD Zen 5 (EPYC 9645): 12 cases.
Operands
| Operand | Kind | Action |
|---|---|---|
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 | ||
xmm | explicit | write |
xmm | explicit | read |
r/m32/64 | explicit | read |
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.
| Intrinsic | Compiles to |
|---|---|
_mm_cvt_roundi32_ss
__m128 _mm_cvt_roundi32_ss(__m128 A, int B, const int R) |
|
_mm_cvt_roundi64_ss
__m128 _mm_cvt_roundi64_ss(__m128 A, long long B, const int R) |
|
_mm_cvt_roundsi32_ss
__m128 _mm_cvt_roundsi32_ss(__m128 A, int B, const int R) |
|
_mm_cvt_roundsi64_ss
__m128 _mm_cvt_roundsi64_ss(__m128 A, long long B, const int R) |
|
_mm_cvt_si2ss
__m128 _mm_cvt_si2ss(__m128 __a, int __b) |
|
_mm_cvtsi32_ss
__m128 _mm_cvtsi32_ss(__m128 __a, int __b) |
|
_mm_cvtsi64_ss
__m128 _mm_cvtsi64_ss(__m128 __a, long long __b) |
|
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.
| ISA set | CPUID | Processors |
|---|---|---|
AVX | AVX | Sandy Bridge, Ivy Bridge, Haswell, Broadwell, Skylake, Comet Lake, Cannon Lake, Ice Lake (client), Tiger Lake, Alder Lake, Arrow Lake, Panther Lake, Nova Lake, Skylake-SP, Cascade Lake, Cooper Lake, Ice Lake (server), Sapphire Rapids, Emerald Rapids, Granite Rapids, Diamond Rapids, Sierra Forest, Clearwater Forest, Knights Landing, Knights Mill, Bulldozer, Piledriver, Zen, Zen+, Zen 2, Zen 3, Zen 4, Zen 5, Zen 6 |
AVX512F_SCALAR | AVX10.1 or AVX512F | Cannon Lake, Ice Lake (client), Tiger Lake, Nova Lake, Skylake-SP, Cascade Lake, Cooper Lake, Ice Lake (server), Sapphire Rapids, Emerald Rapids, Granite Rapids, Diamond Rapids, Knights Landing, Knights Mill, Zen 4, Zen 5, Zen 6 |
More AVX instructions
- VBLENDVPD
- VBLENDVPS
- VBROADCASTF128
- VBROADCASTSD
- VBROADCASTSS
- VCMPPD
- VCMPPS
- VCMPSD
- VCMPSS
- VCOMISD
- VCOMISS
- VCVTDQ2PD
- VCVTDQ2PS
- VCVTPD2DQ
- VCVTPD2PS
- VCVTPS2DQ
- VCVTPS2PD
- VCVTSD2SI
- VCVTSD2SS
- VCVTSI2SD
- VCVTSS2SD
- VCVTSS2SI
- VCVTTPD2DQ
- VCVTTPS2DQ
- VCVTTSD2SI
- VCVTTSS2SI
- VDIVPD
- VDIVPS
- VDIVSD
- VDIVSS
- VDPPD
- VDPPS
- VEXTRACTF128
- VEXTRACTPS
- VHADDPD
- VHADDPS
- VHSUBPD
- VHSUBPS
- VINSERTF128
- VINSERTPS
More AVX10.1 instructions
- VCVTPS2DQ
- VCVTPS2PD
- VCVTPS2PH
- VCVTPS2PHX
- VCVTPS2QQ
- VCVTPS2UDQ
- VCVTPS2UQQ
- VCVTQQ2PD
- VCVTQQ2PH
- VCVTQQ2PS
- VCVTSD2SH
- VCVTSD2SI
- VCVTSD2SS
- VCVTSD2USI
- VCVTSH2SD
- VCVTSH2SI
- VCVTSH2SS
- VCVTSH2USI
- VCVTSI2SD
- VCVTSI2SH
- VCVTSS2SD
- VCVTSS2SH
- VCVTSS2SI
- VCVTSS2USI
- VCVTTPD2DQ
- VCVTTPD2QQ
- VCVTTPD2UDQ
- VCVTTPD2UQQ
- VCVTTPH2DQ
- VCVTTPH2QQ
- VCVTTPH2UDQ
- VCVTTPH2UQQ
- VCVTTPH2UW
- VCVTTPH2W
- VCVTTPS2DQ
- VCVTTPS2QQ
- VCVTTPS2UDQ
- VCVTTPS2UQQ
- VCVTTSD2SI
- VCVTTSD2USI
Sources
- Intel XED v2026.08.23 (commit
0bcb6237345c): forms, encodings, operands, flags, exception classes, attributes, ISA sets, CPUID bits and chip model. - The CPU data of x86-64.net: Zen 3 to Zen 6, from GCC’s
-marchfeature sets and AMD’s Processor Programming References, which the page of each processor cites. - 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. - LLVM 23.1.2's x86 scheduling models (commit
85ac56026243): the latency, reciprocal throughput and ports of each form, as llvm-mca reports them. - Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-093, September 2026): Volume 2A, page 3-238 (CVTSI2SS)
- Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 1 (253665-093, September 2026)
- Intel Advanced Vector Extensions 10.2 Architecture Specification, revision 7.0 (361050-007, April 2026)
- 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.