Instruction
VMOVUPD
Moves packed doubles between registers and memory without an alignment requirement.
VMOVUPD copies 16, 32 or 64 bytes between vector registers, or between a register and memory at any address, bits not interpreted. It is MOVUPD in VEX and EVEX encodings and the double-precision twin of VMOVUPS, whose page covers what the two share: the clearing above the vector width, masked loads that do not fault on the elements left out, the two register encodings and loop tails. VMOVAPD is the same move for aligned addresses. What the PD name changes is the mask: one bit per double.
Masks per double
On Zen 5, vmovupd zmm1{k2}, zmmword ptr [mem] with C9H in the low
byte of K2 loaded doubles 0, 3, 6 and 7 and kept the other four of
ZMM1, and a store under E5H wrote doubles 0, 2, 5, 6 and 7 and left
the rest of memory as it was. A 256-bit form reads only the low four
mask bits: vmovupd ymm0{k1}{z}, ymm31 with A0H in K1 zeroed the
whole register, since bits 3 to 0 were clear. The 17 recorded cases
cover every form, all at a 64-byte aligned address.
In compiled code
In our builds at -O2, both GCC 14 and Clang 23 load and store the
doubles of a loop such as d[i] = s[i] * 2.0 with VMOVUPD: on ymm
registers for -march=x86-64-v3, and for x86-64-v4 on zmm in GCC
and ymm in Clang. For a tail of n doubles, a mask made with
BZHI and _mm512_maskz_loadu_pd with
_mm512_mask_storeu_pd give a zeroing VMOVUPD load and a masked
VMOVUPD store under both compilers.
Alignment still counts
The U only removes the fault. AMD’s Zen 5 guide says that a load or store crossing a 64-byte boundary costs at least a cycle and runs at half throughput, and one crossing a 4 KiB page can cost much more (Section 2.6.2; MOVDQU has the details). A zmm access is 64 bytes long, so at any address that is not a multiple of 64 it always spans two cache lines, where a ymm access does so only at some offsets.
Forms
| Instruction | Encoding | Requires |
|---|---|---|
VMOVUPD xmm, m128
VMOVUPD_XMMdq_MEMdq | VEX.128.66.0F.WIG 10 /r | AVX |
VMOVUPD xmm, xmm
VMOVUPD_XMMdq_XMMdq_10 | VEX.128.66.0F.WIG 10 /r | AVX |
VMOVUPD m128, xmm
VMOVUPD_MEMdq_XMMdq | VEX.128.66.0F.WIG 11 /r | AVX |
VMOVUPD xmm, xmm
VMOVUPD_XMMdq_XMMdq_11 | VEX.128.66.0F.WIG 11 /r | AVX |
VMOVUPD ymm, m256
VMOVUPD_YMMqq_MEMqq | VEX.256.66.0F.WIG 10 /r | AVX |
VMOVUPD ymm, ymm
VMOVUPD_YMMqq_YMMqq_10 | VEX.256.66.0F.WIG 10 /r | AVX |
VMOVUPD m256, ymm
VMOVUPD_MEMqq_YMMqq | VEX.256.66.0F.WIG 11 /r | AVX |
VMOVUPD ymm, ymm
VMOVUPD_YMMqq_YMMqq_11 | VEX.256.66.0F.WIG 11 /r | AVX |
VMOVUPD zmm {k}{z}, zmm
VMOVUPD_ZMMf64_MASKmskw_ZMMf64_AVX512 | EVEX.512.66.0F.W1 10 /rEVEX.512.66.0F.W1 11 /r | AVX10.1 or AVX512F |
VMOVUPD zmm {k}{z}, m512
VMOVUPD_ZMMf64_MASKmskw_MEMf64_AVX512 | EVEX.512.66.0F.W1 10 /r | AVX10.1 or AVX512F |
VMOVUPD m512 {k}, zmm
VMOVUPD_MEMf64_MASKmskw_ZMMf64_AVX512 | EVEX.512.66.0F.W1 11 /r | AVX10.1 or AVX512F |
VMOVUPD xmm {k}{z}, xmm
VMOVUPD_XMMf64_MASKmskw_XMMf64_AVX512 | EVEX.128.66.0F.W1 10 /rEVEX.128.66.0F.W1 11 /r | AVX10.1 or AVX512F + AVX512VL |
VMOVUPD xmm {k}{z}, m128
VMOVUPD_XMMf64_MASKmskw_MEMf64_AVX512 | EVEX.128.66.0F.W1 10 /r | AVX10.1 or AVX512F + AVX512VL |
VMOVUPD m128 {k}, xmm
VMOVUPD_MEMf64_MASKmskw_XMMf64_AVX512 | EVEX.128.66.0F.W1 11 /r | AVX10.1 or AVX512F + AVX512VL |
VMOVUPD ymm {k}{z}, ymm
VMOVUPD_YMMf64_MASKmskw_YMMf64_AVX512 | EVEX.256.66.0F.W1 10 /rEVEX.256.66.0F.W1 11 /r | AVX10.1 or AVX512F + AVX512VL |
VMOVUPD ymm {k}{z}, m256
VMOVUPD_YMMf64_MASKmskw_MEMf64_AVX512 | EVEX.256.66.0F.W1 10 /r | AVX10.1 or AVX512F + AVX512VL |
VMOVUPD m256 {k}, ymm
VMOVUPD_MEMf64_MASKmskw_YMMf64_AVX512 | EVEX.256.66.0F.W1 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.
VMOVUPD xmm, xmm/m128 VMOVUPD ymm, ymm/m256 VMOVUPD xmm {k}{z}, xmm/m128 VMOVUPD ymm {k}{z}, ymm/m256 VMOVUPD zmm {k}{z}, zmm/m512merging, {k1}
zeroing, {k1}{z}
Example mask k1 = 0x02. Every double works alike: 2, 4 and 8 doubles in the xmm, ymm and zmm forms.
With merging: result doubles 1 to 0: a1, unchanged.
With zeroing: result doubles 1 to 0: a1, 0.
VMOVUPD m128, xmm VMOVUPD m256, ymm VMOVUPD m128 {k}, xmm VMOVUPD m256 {k}, ymm VMOVUPD m512 {k}, zmmExample mask k1 = 0x02. Every double works alike: 2, 4 and 8 doubles in the xmm, ymm and zmm forms.
Memory doubles 1 to 0: a1, unchanged.
Operation
What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.
VMOVUPD xmm, xmm/m128 VMOVUPD ymm, ymm/m256 VMOVUPD xmm {k}{z}, xmm/m128 VMOVUPD ymm {k}{z}, ymm/m256 VMOVUPD zmm {k}{z}, zmm/m512for i in range(VL // 64):
if k1[i]: # 1 without a write mask
zmm1.q[i] = src2.q[i]
elif zeroing:
zmm1.q[i] = 0
# else: zmm1.q[i] keeps its value
# zmm1 is zeroed from bit VL upRun on AMD Zen 5 (EPYC 9645): 12 cases.
VMOVUPD m128, xmm VMOVUPD m256, ymm VMOVUPD m128 {k}, xmm VMOVUPD m256 {k}, ymm VMOVUPD m512 {k}, zmmfor i in range(VL // 64):
if k1[i]: # 1 without a write mask
mem.q[i] = zmm2.q[i]
# else: mem.q[i] is not writtenRun on AMD Zen 5 (EPYC 9645): 5 cases.
Operands
| Operand | Kind | Action |
|---|---|---|
VMOVUPD xmm, xmm/m128 VMOVUPD ymm, ymm/m256 | ||
xmm, ymm | explicit | write |
xmm/m128, ymm/m256 | explicit | read |
VMOVUPD xmm/m128, xmm VMOVUPD ymm/m256, ymm | ||
xmm/m128, ymm/m256 | explicit | write |
xmm, ymm | explicit | read |
VMOVUPD xmm {k}{z}, xmm/m128 VMOVUPD ymm {k}{z}, ymm/m256 VMOVUPD zmm {k}{z}, zmm/m512 | ||
xmm, ymm, zmm | explicit | write (masked) |
{k} | explicit | read (write mask) |
xmm/m128, ymm/m256, zmm/m512 | explicit | read |
VMOVUPD m128 {k}, xmm VMOVUPD m256 {k}, ymm VMOVUPD 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 VMOVUPD, 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_pd
__m128d _mm_loadu_pd(const double *__dp) |
|
_mm_storeu_pd
void _mm_storeu_pd(double *__dp, __m128d __a) |
|
_mm_mask_loadu_pd
__m128d _mm_mask_loadu_pd(__m128d __W, __mmask8 __U, const void *__P) |
|
_mm_mask_storeu_pd
void _mm_mask_storeu_pd(void *__P, __mmask8 __U, __m128d __A) |
|
_mm_maskz_loadu_pd
__m128d _mm_maskz_loadu_pd(__mmask8 __U, const void *__P) |
|
_mm256_loadu_pd
__m256d _mm256_loadu_pd(const double *__p) |
|
_mm256_storeu_pd
void _mm256_storeu_pd(double *__p, __m256d __a) |
|
_mm256_mask_loadu_pd
__m256d _mm256_mask_loadu_pd(__m256d __W, __mmask8 __U, const void *__P) |
|
_mm256_mask_storeu_pd
void _mm256_mask_storeu_pd(void *__P, __mmask8 __U, __m256d __A) |
|
_mm256_maskz_loadu_pd
__m256d _mm256_maskz_loadu_pd(__mmask8 __U, const void *__P) |
|
_mm512_loadu_pd
__m512d _mm512_loadu_pd(const void *__p) |
|
_mm512_storeu_pd
void _mm512_storeu_pd(void *__P, __m512d __A) |
|
_mm512_mask_loadu_pd
__m512d _mm512_mask_loadu_pd(__m512d __W, __mmask8 __U, const void *__P) |
|
_mm512_mask_storeu_pd
void _mm512_mask_storeu_pd(void *__P, __mmask8 __U, __m512d __A) |
|
_mm512_maskz_loadu_pd
__m512d _mm512_maskz_loadu_pd(__mmask8 __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
- VMOVDDUP
- VMOVDQA
- VMOVDQU
- VMOVHLPS
- VMOVHPD
- VMOVHPS
- VMOVLHPS
- VMOVLPD
- VMOVLPS
- VMOVMSKPD
- VMOVMSKPS
- VMOVNTDQ
- VMOVNTDQA
- VMOVNTPD
- VMOVNTPS
- VMOVQ
- VMOVSD
- VMOVSHDUP
- VMOVSLDUP
- VMOVSS
- VMOVUPS
- VMPSADBW
- VMULPD
- VMULPS
- VMULSD
- VMULSS
- VORPD
- VORPS
- VPABSB
- VPABSD
- VPABSW
- VPACKSSDW
- VPACKSSWB
- VPACKUSDW
- VPACKUSWB
- VPADDB
- VPADDD
- VPADDQ
- VPADDSB
- VPADDSW
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-122 (MOVUPD)
- 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.