Extensions
Forms
2 (2 Legacy)
Data
Intel XED v2026.08.23

CVTPI2PS converts two signed doublewords, from an MMX register or eight bytes of memory, to two singles in the low 64 bits of an XMM register, leaving the high 64 bits as they were. Conversions that are not exact round as MXCSR.RC says and set PE, the only exception it can raise, since every 32-bit integer is within the range of a single. It came with SSE, before XMM registers could hold integers; CVTDQ2PS converts four doublewords of an XMM register instead, and CVTPS2PI goes the other way and covers what an MMX operand does to the x87 state. Intel’s entry says CVTPI2PS switches the x87 unit to MMX operation too.

Two cases on Zen 5

  • Rounding toward zero. With RC at truncate and DAZ and FZ set, the integers 16777217 and 16777219 from memory became 16777216 and 16777218 (4B800000h and 4B800001h), both rounded down from values that need 25 bits, and PE was set.
  • From MM6, to nearest. 00FFFFFFh, 16777215, converted exactly to 4B7FFFFFh, and 80000001h, -2147483647, became -2^31 (CF000000h), setting PE.

In both cases bits 127:64 of the destination kept their old contents, as did the rest of the ZMM register: CVTPI2PS is a legacy SSE instruction.

In our builds

At -O2 in 64-bit code, GCC 14 and Clang 23 compile _mm_cvtpi32_ps to CVTDQ2PS and a move that puts the pair under the old high half, a MOVSD in Clang and a SHUFPS with PSHUFD in GCC. In 32-bit builds GCC keeps CVTPI2PS, from the MMX register or from memory, while Clang converts with CVTDQ2PS after loading the pair into an XMM register. AMD’s Zen 5 latency spreadsheet lists the memory form as one macro-op on pipe FP2 or FP3 and the MMX register form as two.

Forms

Every encoding of CVTPI2PS that Intel XED knows, one row per XED instruction form (iform). How to read the notation.
InstructionEncodingRequires
CVTPI2PS xmm, m64 CVTPI2PS_XMMq_MEMqNP 0F 2A /rSSE
CVTPI2PS xmm, mm CVTPI2PS_XMMq_MMXqNP 0F 2A /rSSE

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, m64xmm, mm
Sandy Bridge, Haswell9 / 1p13 / 1p1
Broadwell8 / 1p13 / 1p1
Skylake10 / 0.5p016 / 1p01
Skylake-SP, Ice Lake9 / 1p06 / 2p5
Alder Lake, Sapphire Rapids11 / 0.5p017 / 1p01
Lunar Lake10 / 2V0 V1100 / 2.5V0 V1
Bonnell5 / 5p15 / 5p1
Silvermont8 / 2FPC05 / 2FPC0
Piledriver9 / 1.5FPCVT FPU04 / 1FPCVT FPSTO FPU0
Zen, Zen 212 / 1FPU35 / 1FPU3
Zen 3, Zen 410 / 0.5FP2 FP33 / 0.5FP2 FP3
Jaguar8 / 1FPU13 / 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.

Only the low two singles are computed, each from the elements in the same place; the other singles come from xmm1.
CVTPI2PS: the low elementResult singles 1 and 0 are computed from doublewords 1 and 0 of mm2; singles 3 and 2 are those of xmm1. Result singles 3 to 0: a3, a2, r1, r0.0123xmm1ar0r1a2a3xmm101mm2or m64b

Result singles 1 and 0 are computed from doublewords 1 and 0 of mm2; singles 3 and 2 are those of xmm1. Result singles 3 to 0: a3, a2, r1, r0.

Operation

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

for i in range(2):
    xmm1.f32[i] = to_f32(src2.sd[i])
# xmm1.d[2] to [3] keep their values
# bits 128 and up of the register are unchanged

Run on AMD Zen 5 (EPYC 9645): 3 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
CVTPI2PS xmm, mm/m64
xmmexplicitread, write
mm/m64explicitread

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
mmx-fp

Attributes

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

All forms
follows MXCSR; may abort a TSX transaction

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.
ISA setCPUIDProcessors
SSE

SSE
CPUID.01H:EDX[25] SSE

Every x86-64 processor in XED’s model and Zen 3 to Zen 6

More SSE instructions

All 65 SSE 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. LLVM 23.1.2's x86 scheduling models (commit 85ac56026243): the latency, reciprocal throughput and ports of each form, as llvm-mca reports them.
  4. Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-093, September 2026): Volume 2A, page 3-224 (CVTPI2PS)
  5. Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 1 (253665-093, September 2026)
  6. 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 timings come from LLVM's scheduling models, part of the LLVM Project, licensed under the Apache License 2.0 with LLVM Exceptions. The text is our own.