Instruction
VCVTTSD2SIS
Converts the low double to a signed 32- or 64-bit integer with truncation and, if the invalid exception is masked, saturation and zero for NaN.
- Extensions
- Forms
- 4 (4 EVEX)
- Data
- Intel XED v2026.08.23
VCVTTSD2SIS converts the low double of a register or eight bytes of
memory to a signed integer in a general-purpose register, truncating
toward zero, and saturates where VCVTTSD2SI gives
the integer indefinite: too large a value becomes the largest integer,
7FFFFFFFh or 7FFFFFFFFFFFFFFFh, too small a value the smallest, and a
NaN 0. EVEX.W chooses a 32-bit or, in 64-bit mode, a 64-bit result;
outside 64-bit mode W is ignored. It belongs to AVX10.2: opcode 6Dh in
EVEX map 5 with an F2 prefix, where VCVTTSD2SI uses 2Ch in map 0F, and
it accepts {sae} but no write mask. NaNs, infinities and out-of-range
values still set IE, and a lost fraction sets PE.
VCVTTSS2SIS converts a single, and
VCVTTSD2USIS to an unsigned integer.
What it replaces
- C leaves out-of-range conversions undefined, but Rust’s
asand - WebAssembly’s
trunc_satdefine them as saturating, and - VCVTTPS2DQS’s page explains the fix-up those
- languages need without it. Clang 23 at -O2 with
-mavx10.2compiles - the C version of that rule, `x != x ? 0 : x >= 2147483647.0 ? INT_MAX
- x <= -2147483648.0 ? INT_MIN : (int)x`, to VUCOMISD, two branches, VMAXSD and VCVTTSD2SI rather than to this one instruction.
In our builds
GCC 14 has no AVX10.2 option. In Clang 23, _mm_cvtts_roundsd_i32(x, _MM_FROUND_NO_EXC) gives vcvttsd2sis eax, xmm0, {sae} and
_mm_cvtts_roundsd_i64 the 64-bit form with RAX; (int)x stays
VCVTTSD2SI. No AVX10.2 processor appears in this site’s recorded cases.
Forms
| Instruction | Encoding | Requires |
|---|---|---|
VCVTTSD2SIS r32, xmm, {sae}
VCVTTSD2SIS_GPR32i32_XMMf64_AVX512 | EVEX.LIG.F2.MAP5.W0 6D /r | AVX10.2 |
VCVTTSD2SIS r32, m64
VCVTTSD2SIS_GPR32i32_MEMf64_AVX512 | EVEX.LIG.F2.MAP5.W0 6D /r | AVX10.2 |
VCVTTSD2SIS r64, xmm, {sae} 64-bit mode only
VCVTTSD2SIS_GPR64i64_XMMf64_AVX512 | EVEX.LIG.F2.MAP5.W1 6D /r | AVX10.2 |
VCVTTSD2SIS r64, m64 64-bit mode only
VCVTTSD2SIS_GPR64i64_MEMf64_AVX512 | EVEX.LIG.F2.MAP5.W1 6D /r | AVX10.2 |
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.
r32 receives the conversion of double 0 of xmm2: r0.
Operation
What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.
a = src2.f64[0]
dest.write(cvtts_int(a, dest.bits)) # r32: bits 63:32 cleared
# {sae}: no exception flagsNot run on a processor: none of these processors has AVX10.2.
Operands
| Operand | Kind | Action |
|---|---|---|
VCVTTSD2SIS r32, xmm/m64, {sae} VCVTTSD2SIS r64, xmm/m64, {sae} 64-bit mode only | ||
r32/64 | explicit | write |
xmm/m64 | 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.
- All 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 VCVTTSD2SIS, 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_cvtts_roundsd_i32
int _mm_cvtts_roundsd_i32(__m128 __A, const int __R) |
|
_mm_cvtts_roundsd_i64
long long _mm_cvtts_roundsd_i64(__m128d __A, const int __R) |
|
_mm_cvtts_roundsd_si32
int _mm_cvtts_roundsd_si32(__m128d __A, const int __R) |
|
_mm_cvtts_roundsd_si64
long long _mm_cvtts_roundsd_si64(__m128d __A, const int __R) |
|
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 |
|---|---|---|
AVX512_SAT_CVT_DS_SCALAR | AVX10.2 | Nova Lake, Diamond Rapids |
More AVX10.2 instructions
- VCVTPH2HF8
- VCVTPH2HF8S
- VCVTPH2IBS
- VCVTPH2IUBS
- VCVTPS2IBS
- VCVTPS2IUBS
- VCVTTBF162IBS
- VCVTTBF162IUBS
- VCVTTPD2DQS
- VCVTTPD2QQS
- VCVTTPD2UDQS
- VCVTTPD2UQQS
- VCVTTPH2IBS
- VCVTTPH2IUBS
- VCVTTPS2DQS
- VCVTTPS2IBS
- VCVTTPS2IUBS
- VCVTTPS2QQS
- VCVTTPS2UDQS
- VCVTTPS2UQQS
- VCVTTSD2USIS
- VCVTTSS2SIS
- VCVTTSS2USIS
- VDIVBF16
- VDPPHPS
- VFMADD132BF16
- VFMADD213BF16
- VFMADD231BF16
- VFMSUB132BF16
- VFMSUB213BF16
- VFMSUB231BF16
- VFNMADD132BF16
- VFNMADD213BF16
- VFNMADD231BF16
- VFNMSUB132BF16
- VFNMSUB213BF16
- VFNMSUB231BF16
- VFPCLASSBF16
- VGETEXPBF16
- VGETMANTBF16
Sources
- Intel XED v2026.08.23 (commit
0bcb6237345c): forms, encodings, operands, flags, exception classes, attributes, ISA sets, CPUID bits and chip model. - 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. - Intel Advanced Vector Extensions 10.2 Architecture Specification, revision 7.0 (361050-007, April 2026)
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, part of the LLVM Project, licensed under the Apache License 2.0 with LLVM Exceptions. The text is our own.