Instruction
MOVLPS
Loads two singles from memory into the low half of an XMM register, or stores the low two to memory.
- Extensions
- Forms
- 2 (2 Legacy)
- Data
- Intel XED v2026.08.23
MOVLPS moves 64 bits, two singles, between memory and the low half of
an XMM register. The load replaces bits 63:0 and keeps bits 127:64,
unlike a MOVSD or MOVQ load, which
clears them; the store writes eight bytes. MOVLPD is
the same move with a 66 prefix, and MOVHPS the
high-half twin, whose page covers the pairs of floats that compilers
move with both. With a register in place of memory, the opcode 0F 12 is
MOVHLPS. The memory operand need not be aligned, and
the legacy load keeps bits 128 and up (see mixing SSE and
AVX), where VMOVLPS
zeros them. Zen 5’s recorded movlps xmm1, qword ptr [mem] replaced
the low quadword of XMM1 and kept its high quadword and bits 511:128,
and movlps qword ptr [mem], xmm12 wrote XMM12’s low quadword and left
the next bytes alone.
Where compilers use it
In our builds at -O2, GCC 14 and Clang 23 compile _mm_loadl_pi and
_mm_storel_pi to MOVLPS, and storing elements 0 and 1 of a __m128
to two floats in memory to the store form; Clang also uses MOVLPS for
_mm_loadl_pd, a byte shorter than MOVLPD. To load
a pair of floats into an otherwise unused register, Clang prefers
MOVSD, which does not depend on the register’s old contents.
The merging load is what both vendors’ guides discuss. Intel’s
optimization manual prefers 16-byte loads and shuffles to loading
halves with MOVLPS and MOVHPS (Section 7.5.1.2). AMD’s Zen 5 guide
recommends whole-register loads too (Section 2.11.2), but lists MOVLPS xmm1,[mem] among the instructions whose merge can skip waiting for the
register’s old value when the processor knows its upper bits to be
zero (Section 2.11.5). Its latency spreadsheet gives MOVLPS one
macro-op, two per cycle.
Forms
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.
MOVLPS xmm, m64Result quadwords 1 to 0: a1, b0.
MOVLPS m64, xmmm64 receives quadword 0 of xmm2: a0.
Operation
What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.
MOVLPS xmm, m64xmm1.q[0] = mem.q[0] # xmm1.q[1] keeps its value
# bits 128 and up of the register are unchangedRun on AMD Zen 5 (EPYC 9645): 1 case.
MOVLPS m64, xmmmem.q[0] = xmm2.q[0]Run on AMD Zen 5 (EPYC 9645): 1 case.
Operands
| Operand | Kind | Action |
|---|---|---|
MOVLPS xmm, m64 | ||
xmm | explicit | read, write |
m64 | explicit | read |
MOVLPS m64, xmm | ||
m64 | explicit | write |
xmm | 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
SSE_TYPE_5
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 |
|---|---|---|
SSE | SSE | Every x86-64 processor in XED’s model and Zen 3 to Zen 6 |
More SSE instructions
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. - Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-093, September 2026): Volume 2B, page 4-82 (MOVLPS)
- Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 1 (253665-093, September 2026)
- AMD64 Architecture Programmer's Manual, Volume 4: 128-Bit and 256-Bit Media Instructions (26568, rev. 3.25, November 2021), Wayback Machine copy of AMD's PDF
- Intel 64 and IA-32 Architectures Optimization Reference Manual, Volume 1 (248966-051, October 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 text is our own.