Instruction
MOVUPS
Moves packed singles between XMM registers and memory without an alignment requirement.
- Extensions
- Forms
- 4 (4 Legacy)
- Data
- Intel XED v2026.08.23
MOVUPS copies 16 bytes between XMM registers, or between an XMM register and memory at any address. It came with the first SSE and needs no prefix, which makes it the shortest unaligned 16-byte load and store, and since it does not look at the bits, compilers use it for data of every type. VMOVUPS is the VEX and EVEX form, with masks and wider registers; MOVAPS is the same move for aligned addresses, and MOVDQU and MOVUPD the same bits under integer and double names.
What the legacy form keeps
A load writes bits 127:0 and leaves the rest of the register as it
was: on Zen 5, the recorded movups xmm4, xmmword ptr [mem] replaced
the low 16 bytes of ZMM4 and kept the other 48 (see mixing SSE and
AVX). Like MOVAPS, it has two register
encodings, 0F 10 writing ModRM.reg and 0F 11 writing ModRM.rm, and
Zen 5 ran both. In our builds, compilers copy registers with MOVAPS
instead, of the same length; Intel’s optimization manual lists either
between XMM registers as a move that Ivy Bridge executes without
latency (Section 3.5.1.12).
In baseline code
In our builds at -O2, with the default target and with
-march=x86-64-v2:
- A loop such as
d[i] = s[i] * 2.0foverrestrictpointers loads and stores with MOVUPS in GCC 14 and Clang 23. Legacy SSE arithmetic needs its memory operand aligned, so the load stays a separate instruction. - A 16- or 32-byte
memcpyand the copy of a 16-byte struct are MOVUPS loads and stores in Clang; GCC loads with MOVDQU and stores with MOVUPS. - Clang compiles
_mm_loadu_si128and_mm_loadu_pdto MOVUPS, and both compilers store doubles from_mm_storeu_pdwith it.
The U removes the fault, not the cost of crossing a line: AMD’s Zen 5 guide gives the two moves the same speed on aligned data and half the throughput for an access that spans a 64-byte boundary (Section 2.6.2). With alignment checking on, the manuals differ on when a misaligned MOVUPS raises #AC, as MOVDQU explains.
In the optimization guide
What the optimization guide says about MOVUPS, a line per claim. Each links to the claim in the guide, with its sources and where they differ.
Memory
- Cache lines, alignment and splits: In a stream of consecutive accesses that all start at the same misalignment, the share that splits a line grows with the width: one 16-byte access in four, every second 32-byte AVX access and every 64-byte AVX-512 access.
Redwood Cove
- Front end: Redwood Cove fuses a load into a register with the operation on that register that follows it.
- Front end: Redwood Cove’s load-and-operate fusion takes only some loads, addresses and operations.
Silvermont to Goldmont Plus
- Out-of-order and in-order execution: Goldmont eliminates register-to-register moves of XMM registers; Silvermont does not. sources differ
- Loads, stores and caches: Unaligned vector loads are one micro-op, but line splits are slow; Intel suggests aligned loads and palignr.
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.
The store forms copy the same way, from the register to memory.
Result single i is single i of xmm2. Result singles 3 to 0: a3, a2, a1, a0.
Operation
What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.
dest.write(src2.read())
# a register destination: bits 128 and up are unchangedRun on AMD Zen 5 (EPYC 9645): 4 cases.
Operands
| Operand | Kind | Action |
|---|---|---|
MOVUPS xmm, xmm/m128 | ||
xmm | explicit | write |
xmm/m128 | explicit | read |
MOVUPS xmm/m128, xmm | ||
xmm/m128 | 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_4M
Intrinsics
The C intrinsics of Clang 23.1.2 that compile to MOVUPS, 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_loadu_ps
__m128 _mm_loadu_ps(const float *__p) |
|
_mm_storeu_ps
void _mm_storeu_ps(float *__p, __m128 __a) |
|
_mm_storeu_si128
void _mm_storeu_si128(__m128i_u *__p, __m128i __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 |
|---|---|---|
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. - 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 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-093, September 2026): Volume 2B, page 4-126 (MOVUPS)
- Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 1 (253665-093, September 2026)
- Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 3 (325384-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 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.