Instruction
VMOVUPS
Moves packed singles between registers and memory without an alignment requirement.
VMOVUPS copies packed singles between vector registers, or between a
register and memory at any address. Like MOVUPS, its
SSE form, it does not interpret the bits, so compilers move any data
with it: at -O2 with -march=x86-64-v3, GCC 14 and Clang 23 load and
store the floats of vectorized loops with VMOVUPS, and Clang also uses
it for _mm256_loadu_si256 and for a 32-byte memcpy, where GCC
emits VMOVDQU. VMOVAPS is the
same move for aligned addresses, and AMD’s Zen 5 guide says that on
aligned data the two perform the same (Section 2.6.2).
What VEX and EVEX add
- Clearing above the width. MOVUPS leaves bits 128 and up of its
destination register alone; every VEX and EVEX form clears them
above its own width. On Zen 5,
vmovups xmm8, xmm15left bits 128 to 511 of ZMM8 zero. - Write masks. The EVEX forms (AVX512F, or AVX10.1) select singles
with a mask register. A masked load keeps the unselected elements of
the destination, or zeroes them with
{z}; a masked store writes only the selected ones. Elements left out raise no fault, so a load may reach into an unmapped page past the end of an array. - Two register encodings. Opcode 10 writes the register in
ModRM.reg and 11 the one in ModRM.rm. GNU as and LLVM’s assembler
pick 10, but take 11 where that fits the two-byte VEX prefix:
vmovups xmm0, xmm15becomes C5 78 11 F8.
Loop tails
The masks let a loop finish without a scalar remainder: for a mask
of the n low bits made with BZHI,
_mm512_maskz_loadu_ps and _mm512_mask_storeu_ps compile to one
VMOVUPS each under both compilers with -march=x86-64-v4. For a
plain loop over 1,024 floats that target makes GCC 14 use zmm
registers, while Clang 23 stays with ymm.
Zen 5’s 17 recorded cases cover every form, among them a masked
vmovups zmm14{k6} load that kept the unselected singles of ZMM14
and a masked store that left the unselected memory as it was.
In the optimization guide
What the optimization guide says about VMOVUPS, 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.
Forms
| Instruction | Encoding | Requires |
|---|---|---|
VMOVUPS xmm, m128
VMOVUPS_XMMdq_MEMdq | VEX.128.NP.0F.WIG 10 /r | AVX |
VMOVUPS xmm, xmm
VMOVUPS_XMMdq_XMMdq_10 | VEX.128.NP.0F.WIG 10 /r | AVX |
VMOVUPS m128, xmm
VMOVUPS_MEMdq_XMMdq | VEX.128.NP.0F.WIG 11 /r | AVX |
VMOVUPS xmm, xmm
VMOVUPS_XMMdq_XMMdq_11 | VEX.128.NP.0F.WIG 11 /r | AVX |
VMOVUPS ymm, m256
VMOVUPS_YMMqq_MEMqq | VEX.256.NP.0F.WIG 10 /r | AVX |
VMOVUPS ymm, ymm
VMOVUPS_YMMqq_YMMqq_10 | VEX.256.NP.0F.WIG 10 /r | AVX |
VMOVUPS m256, ymm
VMOVUPS_MEMqq_YMMqq | VEX.256.NP.0F.WIG 11 /r | AVX |
VMOVUPS ymm, ymm
VMOVUPS_YMMqq_YMMqq_11 | VEX.256.NP.0F.WIG 11 /r | AVX |
VMOVUPS zmm {k}{z}, zmm
VMOVUPS_ZMMf32_MASKmskw_ZMMf32_AVX512 | EVEX.512.NP.0F.W0 10 /rEVEX.512.NP.0F.W0 11 /r | AVX10.1 or AVX512F |
VMOVUPS zmm {k}{z}, m512
VMOVUPS_ZMMf32_MASKmskw_MEMf32_AVX512 | EVEX.512.NP.0F.W0 10 /r | AVX10.1 or AVX512F |
VMOVUPS m512 {k}, zmm
VMOVUPS_MEMf32_MASKmskw_ZMMf32_AVX512 | EVEX.512.NP.0F.W0 11 /r | AVX10.1 or AVX512F |
VMOVUPS xmm {k}{z}, xmm
VMOVUPS_XMMf32_MASKmskw_XMMf32_AVX512 | EVEX.128.NP.0F.W0 10 /rEVEX.128.NP.0F.W0 11 /r | AVX10.1 or AVX512F + AVX512VL |
VMOVUPS xmm {k}{z}, m128
VMOVUPS_XMMf32_MASKmskw_MEMf32_AVX512 | EVEX.128.NP.0F.W0 10 /r | AVX10.1 or AVX512F + AVX512VL |
VMOVUPS m128 {k}, xmm
VMOVUPS_MEMf32_MASKmskw_XMMf32_AVX512 | EVEX.128.NP.0F.W0 11 /r | AVX10.1 or AVX512F + AVX512VL |
VMOVUPS ymm {k}{z}, ymm
VMOVUPS_YMMf32_MASKmskw_YMMf32_AVX512 | EVEX.256.NP.0F.W0 10 /rEVEX.256.NP.0F.W0 11 /r | AVX10.1 or AVX512F + AVX512VL |
VMOVUPS ymm {k}{z}, m256
VMOVUPS_YMMf32_MASKmskw_MEMf32_AVX512 | EVEX.256.NP.0F.W0 10 /r | AVX10.1 or AVX512F + AVX512VL |
VMOVUPS m256 {k}, ymm
VMOVUPS_MEMf32_MASKmskw_YMMf32_AVX512 | EVEX.256.NP.0F.W0 11 /r | AVX10.1 or AVX512F + AVX512VL |
Latency and throughput
| Model | xmm, m128 | xmm, xmmxmm {k}{z}, xmmno maskymm {k}{z}, ymmno mask | m128, xmmm512 {k}, zmmm128 {k}, xmmm256 {k}, ymm | ymm, m256 | ymm, ymm | m256, ymm | zmm {k}{z}, zmmno mask | zmm {k}{z}, zmmwith a mask, zeroing | zmm {k}{z}, m512no maskymm {k}{z}, m256no mask | zmm {k}{z}, m512with a mask, zeroing | xmm {k}{z}, xmmwith a mask, zeroingymm {k}{z}, ymmwith a mask, zeroing | xmm {k}{z}, m128no mask | xmm {k}{z}, m128with a mask, zeroing | ymm {k}{z}, m256with a mask, zeroing |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Sandy Bridge | 6 / 0.5p23 | 1 / 1p5 | 1 / 1p4 p23 | 7 / 0.5p23 | 1 / 1p5 | 1 / 1p4 p23 | ||||||||
| Haswell | 6 / 0.5p23 | 1 / 1p5 | 1 / 1p2347 | 7 / 0.5p23 | 1 / 1p5 | 1 / 1p2347 | ||||||||
| Broadwell | 5 / 0.5p23 | 1 / 1p5 | 1 / 1p2347 | 6 / 0.5p23 | 1 / 1p5 | 1 / 1p2347 | ||||||||
| Skylake | 6 / 0.5p23 | 1 / 0.33p015 | 1 / 1p2347 | 7 / 0.5p23 | 1 / 0.33p015 | 1 / 1p2347 | ||||||||
| Skylake-SP | 6 / 0.5p23 | 1 / 0.33p015 | 1 / 1p2347 | 7 / 0.5p23 | 1 / 0.33p015 | 1 / 1p2347 | 1 / 0.5p05 | 1 / 0.5p05 | 8 / 0.5p015 | 8 / 0.5p015 | 1 / 0.33p015 | 7 / 0.5p015 | 7 / 0.5p015 | 8 / 0.5p015 |
| Ice Lake | 6 / 0.5p23 | 1 / 0.33p015 | 1 / 0.5p4789 | 7 / 0.5p23 | 1 / 0.33p015 | 1 / 0.5p4789 | 1 / 0.5p05 | 1 / 0.5p05 | 8 / 0.5p015 | 8 / 0.5p015 | 1 / 0.33p015 | 7 / 0.5p015 | 7 / 0.5p015 | 8 / 0.5p015 |
| Alder Lake | 7 / 0.33p2 p3 p10 | 1 / 0 | 12 / 0.5p4789 | 8 / 0.33p2 p3 p10 | 1 / 0 | 12 / 0.5p4789 | ||||||||
| Sapphire Rapids | 7 / 0.33p2 p3 p10 | 1 / 0 | 12 / 0.5p4789 | 8 / 0.33p2 p3 p10 | 1 / 0 | 12 / 0.5p4789 | 1 / 0 | 1 / 0.5p05 | 8 / 0.33p2 p3 p10 | 9 / 0.5p05 | 1 / 0.33p015 | 7 / 0.33p2 p3 p10 | 8 / 0.33p015 | 9 / 0.33p015 |
| Lunar Lake | 7 / 2p20 p21 p22 | 1 / 0 | 12 / 0.5p10 p11 p25 p26 p27 | 8 / 2.33p20 p21 p22 | 1 / 0 | 12 / 0.5p10 p11 p25 p26 p27 | ||||||||
| Piledriver | 5 / 1.5FPFMA FPU0 FPU1 | 1 / 1FPFMA FPU0 FPU1 | 1 / 1.5AGLU01 FPSTO FPU2 FPU3 Store | 5 / 1.5FPFMA FPU0 FPU1 | 2 / 1FPFMA FPU0 FPU1 | 1 / 1FPU1 | ||||||||
| Zen | 8 / 0.5AGU0 AGU1 | 1 / 0.25FPU0 FPU1 FPU2 FPU3 | 1 / 0.5AGU0 AGU1 | 8 / 0.5AGU0 AGU1 | 1 / 0.25FPU0 FPU1 FPU2 FPU3 | 1 / 0.5AGU0 AGU1 | ||||||||
| Zen 2 | 8 / 0.33AGU0 AGU1 AGU2 | 1 / 0.25FPU0 FPU1 FPU2 FPU3 | 1 / 0.33AGU0 AGU1 AGU2 | 8 / 0.33AGU0 AGU1 AGU2 | 1 / 0.25FPU0 FPU1 FPU2 FPU3 | 1 / 0.33AGU0 AGU1 AGU2 | ||||||||
| Zen 3 | 8 / 0.5FP45 LSU Load | 0 / 0.17 | 1 / 1FP45 FPSt LSU Store | 8 / 0.5FP45 LSU Load | 0 / 0.17 | 1 / 1FP45 FPSt LSU Store | ||||||||
| Zen 4 | 8 / 0.5FP45 LSU Load | 0 / 0.17 | 1 / 1FP45 FPSt LSU Store | 8 / 0.5FP45 LSU Load | 0 / 0.17 | 1 / 1FP45 FPSt LSU Store | 0 / 0.17 | 0 / 0.17 | 8 / 0.5FP45 LSU Load | 8 / 0.5FP45 LSU Load | 0 / 0.17 | 8 / 0.5FP45 LSU Load | 8 / 0.5FP45 LSU Load | 8 / 0.5FP45 LSU Load |
| Jaguar | 5 / 1LAGU | 1 / 0.5FPA FPM FPU0 FPU1 | 1 / 1FPU1 | 5 / 2LAGU | 1 / 1FPA FPM FPU0 FPU1 | 1 / 2FPU1 | ||||||||
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.
VMOVUPS xmm, xmm/m128 VMOVUPS ymm, ymm/m256 VMOVUPS xmm {k}{z}, xmm/m128 VMOVUPS ymm {k}{z}, ymm/m256 VMOVUPS zmm {k}{z}, zmm/m512merging, {k1}
zeroing, {k1}{z}
Example mask k1 = 0x0B. Every single works alike: 4, 8 and 16 singles in the xmm, ymm and zmm forms.
With merging: result singles 3 to 0: a3, unchanged, a1, a0.
With zeroing: result singles 3 to 0: a3, 0, a1, a0.
VMOVUPS m128, xmm VMOVUPS m256, ymm VMOVUPS m128 {k}, xmm VMOVUPS m256 {k}, ymm VMOVUPS m512 {k}, zmmExample mask k1 = 0x0B. Every single works alike: 4, 8 and 16 singles in the xmm, ymm and zmm forms.
Memory singles 3 to 0: a3, unchanged, a1, a0.
Operation
What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.
VMOVUPS xmm, xmm/m128 VMOVUPS ymm, ymm/m256 VMOVUPS xmm {k}{z}, xmm/m128 VMOVUPS ymm {k}{z}, ymm/m256 VMOVUPS zmm {k}{z}, zmm/m512for i in range(VL // 32):
if k1[i]: # 1 without a write mask
zmm1.d[i] = src2.d[i]
elif zeroing:
zmm1.d[i] = 0
# else: zmm1.d[i] keeps its value
# zmm1 is zeroed from bit VL upRun on AMD Zen 5 (EPYC 9645): 12 cases.
VMOVUPS m128, xmm VMOVUPS m256, ymm VMOVUPS m128 {k}, xmm VMOVUPS m256 {k}, ymm VMOVUPS m512 {k}, zmmfor i in range(VL // 32):
if k1[i]: # 1 without a write mask
mem.d[i] = zmm2.d[i]
# else: mem.d[i] is not writtenRun on AMD Zen 5 (EPYC 9645): 5 cases.
Operands
| Operand | Kind | Action |
|---|---|---|
VMOVUPS xmm, xmm/m128 VMOVUPS ymm, ymm/m256 | ||
xmm, ymm | explicit | write |
xmm/m128, ymm/m256 | explicit | read |
VMOVUPS xmm/m128, xmm VMOVUPS ymm/m256, ymm | ||
xmm/m128, ymm/m256 | explicit | write |
xmm, ymm | explicit | read |
VMOVUPS xmm {k}{z}, xmm/m128 VMOVUPS ymm {k}{z}, ymm/m256 VMOVUPS zmm {k}{z}, zmm/m512 | ||
xmm, ymm, zmm | explicit | write (masked) |
{k} | explicit | read (write mask) |
xmm/m128, ymm/m256, zmm/m512 | explicit | read |
VMOVUPS m128 {k}, xmm VMOVUPS m256 {k}, ymm VMOVUPS m512 {k}, zmm | ||
m128/256/512 | explicit | write (masked) |
{k} | explicit | read (write mask) |
xmm, ymm, zmm | 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-4M- EVEX forms
AVX512-E4
Attributes
What else XED records about the forms. How to read.
- EVEX forms
- write masking
- EVEX memory forms
- memory fault suppression
Intrinsics
The C intrinsics of Clang 23.1.2 that compile to VMOVUPS, 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_pbh
__m128bh _mm_loadu_pbh(const void *__p) |
|
_mm_loadu_ph
__m128h _mm_loadu_ph(const void *__p) |
|
_mm_loadu_ps
__m128 _mm_loadu_ps(const float *__p) |
|
_mm_storeu_pbh
void _mm_storeu_pbh(void *__P, __m128bh __A) |
|
_mm_storeu_ph
void _mm_storeu_ph(void *__P, __m128h __A) |
|
_mm_storeu_ps
void _mm_storeu_ps(float *__p, __m128 __a) |
|
_mm_storeu_si128
void _mm_storeu_si128(__m128i_u *__p, __m128i __b) |
|
_mm_mask_loadu_ps
__m128 _mm_mask_loadu_ps(__m128 __W, __mmask8 __U, const void *__P) |
|
_mm_mask_storeu_ps
void _mm_mask_storeu_ps(void *__P, __mmask8 __U, __m128 __A) |
|
_mm_maskz_loadu_ps
__m128 _mm_maskz_loadu_ps(__mmask8 __U, const void *__P) |
|
_mm256_loadu_pbh
__m256bh _mm256_loadu_pbh(const void *__p) |
|
_mm256_loadu_ph
__m256h _mm256_loadu_ph(const void *__p) |
|
_mm256_loadu_ps
__m256 _mm256_loadu_ps(const float *__p) |
|
_mm256_storeu_pbh
void _mm256_storeu_pbh(void *__P, __m256bh __A) |
|
_mm256_storeu_ph
void _mm256_storeu_ph(void *__P, __m256h __A) |
|
_mm256_storeu_ps
void _mm256_storeu_ps(float *__p, __m256 __a) |
|
_mm256_mask_loadu_ps
__m256 _mm256_mask_loadu_ps(__m256 __W, __mmask8 __U, const void *__P) |
|
_mm256_mask_storeu_ps
void _mm256_mask_storeu_ps(void *__P, __mmask8 __U, __m256 __A) |
|
_mm256_maskz_loadu_ps
__m256 _mm256_maskz_loadu_ps(__mmask8 __U, const void *__P) |
|
_mm512_loadu_pbh
__m512bh _mm512_loadu_pbh(const void *__p) |
|
_mm512_loadu_ph
__m512h _mm512_loadu_ph(const void *__p) |
|
_mm512_loadu_ps
__m512 _mm512_loadu_ps(const void *__p) |
|
_mm512_storeu_pbh
void _mm512_storeu_pbh(void *__P, __m512bh __A) |
|
_mm512_storeu_ph
void _mm512_storeu_ph(void *__P, __m512h __A) |
|
_mm512_storeu_ps
void _mm512_storeu_ps(void *__P, __m512 __A) |
|
_mm512_mask_loadu_ps
__m512 _mm512_mask_loadu_ps(__m512 __W, __mmask16 __U, const void *__P) |
|
_mm512_mask_storeu_ps
void _mm512_mask_storeu_ps(void *__P, __mmask16 __U, __m512 __A) |
|
_mm512_maskz_loadu_ps
__m512 _mm512_maskz_loadu_ps(__mmask16 __U, const void *__P) |
|
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.
More AVX instructions
- VMOVDQA
- VMOVDQU
- VMOVHLPS
- VMOVHPD
- VMOVHPS
- VMOVLHPS
- VMOVLPD
- VMOVLPS
- VMOVMSKPD
- VMOVMSKPS
- VMOVNTDQ
- VMOVNTDQA
- VMOVNTPD
- VMOVNTPS
- VMOVQ
- VMOVSD
- VMOVSHDUP
- VMOVSLDUP
- VMOVSS
- VMOVUPD
- VMPSADBW
- VMULPD
- VMULPS
- VMULSD
- VMULSS
- VORPD
- VORPS
- VPABSB
- VPABSD
- VPABSW
- VPACKSSDW
- VPACKSSWB
- VPACKUSDW
- VPACKUSWB
- VPADDB
- VPADDD
- VPADDQ
- VPADDSB
- VPADDSW
- VPADDUSB
More AVX10.1 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. - 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 2B, page 4-126 (MOVUPS)
- 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.