Instruction
VMOVAPD
Moves packed doubles between registers and memory that must be aligned to the vector size.
VMOVAPD is MOVAPD in VEX and EVEX encodings, and the double-precision twin of VMOVAPS: a copy of 16, 32 or 64 bytes between vector registers, or between a register and memory aligned to that size, bits not interpreted. The VMOVAPS page covers what the two share: the alignment fault, which a write mask does not relax, and the clearing of the register above the vector width. What the PD name changes:
- A mask bit per double. In the EVEX forms (AVX512F, or AVX10.1)
each bit of the write mask selects a quadword. On Zen 5,
vmovapd zmmword ptr [mem]{k2}, zmm9with C9h in the low byte of K2 wrote doubles 0, 3, 6 and 7 and left the other four in memory as they were. VMOVDQA64 is the same masked move under an integer name. - No longer than VMOVAPS. Legacy MOVAPD needs a 66 prefix that MOVAPS does without; VEX and EVEX encode it in a field of their own, so the PD and PS forms have the same length.
In compiled code
Without a mask the choice is the compiler’s taste. At -O2 with
-march=x86-64-v3 or -v4, GCC 14 names the move after the data:
VMOVAPD for _mm256_load_pd and _mm256_store_pd, and for a loop
over double arrays declared aligned with __builtin_assume_aligned,
on zmm registers with -v4. Clang 23 compiles the two intrinsics to
VMOVAPS but the loop to VMOVAPD on ymm registers. Where a mask makes
the element size matter, both emit VMOVAPD: for
_mm512_maskz_load_pd, _mm512_mask_store_pd and
_mm512_mask_blend_pd, the last as vmovapd zmm0{k1}, zmm1. Without
the alignment hint, the loop uses VMOVUPD.
AMD’s Zen 5 guide names VMOVAPD in its advice to load and store whole registers rather than halves, as MOVLPD and MOVHPD would (Section 2.11.2). Zen 5’s 17 recorded cases cover every form, the masked loads and stores included, all at an aligned address.
Forms
| Instruction | Encoding | Requires |
|---|---|---|
VMOVAPD xmm, m128
VMOVAPD_XMMdq_MEMdq | VEX.128.66.0F.WIG 28 /r | AVX |
VMOVAPD xmm, xmm
VMOVAPD_XMMdq_XMMdq_28 | VEX.128.66.0F.WIG 28 /r | AVX |
VMOVAPD m128, xmm
VMOVAPD_MEMdq_XMMdq | VEX.128.66.0F.WIG 29 /r | AVX |
VMOVAPD xmm, xmm
VMOVAPD_XMMdq_XMMdq_29 | VEX.128.66.0F.WIG 29 /r | AVX |
VMOVAPD ymm, m256
VMOVAPD_YMMqq_MEMqq | VEX.256.66.0F.WIG 28 /r | AVX |
VMOVAPD ymm, ymm
VMOVAPD_YMMqq_YMMqq_28 | VEX.256.66.0F.WIG 28 /r | AVX |
VMOVAPD m256, ymm
VMOVAPD_MEMqq_YMMqq | VEX.256.66.0F.WIG 29 /r | AVX |
VMOVAPD ymm, ymm
VMOVAPD_YMMqq_YMMqq_29 | VEX.256.66.0F.WIG 29 /r | AVX |
VMOVAPD zmm {k}{z}, zmm
VMOVAPD_ZMMf64_MASKmskw_ZMMf64_AVX512 | EVEX.512.66.0F.W1 28 /rEVEX.512.66.0F.W1 29 /r | AVX10.1 or AVX512F |
VMOVAPD zmm {k}{z}, m512
VMOVAPD_ZMMf64_MASKmskw_MEMf64_AVX512 | EVEX.512.66.0F.W1 28 /r | AVX10.1 or AVX512F |
VMOVAPD m512 {k}, zmm
VMOVAPD_MEMf64_MASKmskw_ZMMf64_AVX512 | EVEX.512.66.0F.W1 29 /r | AVX10.1 or AVX512F |
VMOVAPD xmm {k}{z}, xmm
VMOVAPD_XMMf64_MASKmskw_XMMf64_AVX512 | EVEX.128.66.0F.W1 28 /rEVEX.128.66.0F.W1 29 /r | AVX10.1 or AVX512F + AVX512VL |
VMOVAPD xmm {k}{z}, m128
VMOVAPD_XMMf64_MASKmskw_MEMf64_AVX512 | EVEX.128.66.0F.W1 28 /r | AVX10.1 or AVX512F + AVX512VL |
VMOVAPD m128 {k}, xmm
VMOVAPD_MEMf64_MASKmskw_XMMf64_AVX512 | EVEX.128.66.0F.W1 29 /r | AVX10.1 or AVX512F + AVX512VL |
VMOVAPD ymm {k}{z}, ymm
VMOVAPD_YMMf64_MASKmskw_YMMf64_AVX512 | EVEX.256.66.0F.W1 28 /rEVEX.256.66.0F.W1 29 /r | AVX10.1 or AVX512F + AVX512VL |
VMOVAPD ymm {k}{z}, m256
VMOVAPD_YMMf64_MASKmskw_MEMf64_AVX512 | EVEX.256.66.0F.W1 28 /r | AVX10.1 or AVX512F + AVX512VL |
VMOVAPD m256 {k}, ymm
VMOVAPD_MEMf64_MASKmskw_YMMf64_AVX512 | EVEX.256.66.0F.W1 29 /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 / 18AGLU01 FPSTO FPU2 FPU3 Store | ||||||||
| 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.
VMOVAPD xmm, xmm/m128 VMOVAPD ymm, ymm/m256 VMOVAPD xmm {k}{z}, xmm/m128 VMOVAPD ymm {k}{z}, ymm/m256 VMOVAPD 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.
VMOVAPD m128, xmm VMOVAPD m256, ymm VMOVAPD m128 {k}, xmm VMOVAPD m256 {k}, ymm VMOVAPD 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.
VMOVAPD xmm, xmm/m128 VMOVAPD ymm, ymm/m256 VMOVAPD xmm {k}{z}, xmm/m128 VMOVAPD ymm {k}{z}, ymm/m256 VMOVAPD 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.
VMOVAPD m128, xmm VMOVAPD m256, ymm VMOVAPD m128 {k}, xmm VMOVAPD m256 {k}, ymm VMOVAPD 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 |
|---|---|---|
VMOVAPD xmm, xmm/m128 VMOVAPD ymm, ymm/m256 | ||
xmm, ymm | explicit | write |
xmm/m128, ymm/m256 | explicit | read |
VMOVAPD xmm/m128, xmm VMOVAPD ymm/m256, ymm | ||
xmm/m128, ymm/m256 | explicit | write |
xmm, ymm | explicit | read |
VMOVAPD xmm {k}{z}, xmm/m128 VMOVAPD ymm {k}{z}, ymm/m256 VMOVAPD zmm {k}{z}, zmm/m512 | ||
xmm, ymm, zmm | explicit | write (masked) |
{k} | explicit | read (write mask) |
xmm/m128, ymm/m256, zmm/m512 | explicit | read |
VMOVAPD m128 {k}, xmm VMOVAPD m256 {k}, ymm VMOVAPD 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-1- EVEX forms
AVX512-E1
Attributes
What else XED records about the forms. How to read.
- Memory forms
- aligned memory operand
- EVEX forms
- write masking
- EVEX memory forms
- memory fault suppression
Intrinsics
The C intrinsics of Clang 23.1.2 that compile to VMOVAPD, 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_load_pd
__m128d _mm_load_pd(const double *__dp) |
|
_mm_store_pd
void _mm_store_pd(double *__dp, __m128d __a) |
|
_mm_mask_blend_pd
__m128d _mm_mask_blend_pd(__mmask8 __U, __m128d __A, __m128d __W) |
|
_mm_mask_load_pd
__m128d _mm_mask_load_pd(__m128d __W, __mmask8 __U, const void *__P) |
|
_mm_mask_mov_pd
__m128d _mm_mask_mov_pd(__m128d __W, __mmask8 __U, __m128d __A) |
|
_mm_mask_permute_pd
__m128d _mm_mask_permute_pd(__m128d W, __mmask8 U, __m128d X, const int C) |
|
_mm_mask_store_pd
void _mm_mask_store_pd(void *__P, __mmask8 __U, __m128d __A) |
|
_mm_maskz_load_pd
__m128d _mm_maskz_load_pd(__mmask8 __U, const void *__P) |
|
_mm_maskz_mov_pd
__m128d _mm_maskz_mov_pd(__mmask8 __U, __m128d __A) |
|
_mm_maskz_permute_pd
__m128d _mm_maskz_permute_pd(__mmask8 U, __m128d X, const int C) |
|
_mm256_load_pd
__m256d _mm256_load_pd(const double *__p) |
|
_mm256_store_pd
void _mm256_store_pd(double *__p, __m256d __a) |
|
_mm256_mask_blend_pd
__m256d _mm256_mask_blend_pd(__mmask8 __U, __m256d __A, __m256d __W) |
|
_mm256_mask_load_pd
__m256d _mm256_mask_load_pd(__m256d __W, __mmask8 __U, const void *__P) |
|
_mm256_mask_mov_pd
__m256d _mm256_mask_mov_pd(__m256d __W, __mmask8 __U, __m256d __A) |
|
_mm256_mask_store_pd
void _mm256_mask_store_pd(void *__P, __mmask8 __U, __m256d __A) |
|
_mm256_maskz_load_pd
__m256d _mm256_maskz_load_pd(__mmask8 __U, const void *__P) |
|
_mm256_maskz_mov_pd
__m256d _mm256_maskz_mov_pd(__mmask8 __U, __m256d __A) |
|
_mm512_load_pd
__m512d _mm512_load_pd(const void *__p) |
|
_mm512_store_pd
void _mm512_store_pd(void *__P, __m512d __A) |
|
_mm512_mask_blend_pd
__m512d _mm512_mask_blend_pd(__mmask8 __U, __m512d __A, __m512d __W) |
|
_mm512_mask_load_pd
__m512d _mm512_mask_load_pd(__m512d __W, __mmask8 __U, const void *__P) |
|
_mm512_mask_mov_pd
__m512d _mm512_mask_mov_pd(__m512d __W, __mmask8 __U, __m512d __A) |
|
_mm512_mask_store_pd
void _mm512_mask_store_pd(void *__P, __mmask8 __U, __m512d __A) |
|
_mm512_maskz_load_pd
__m512d _mm512_maskz_load_pd(__mmask8 __U, const void *__P) |
|
_mm512_maskz_mov_pd
__m512d _mm512_maskz_mov_pd(__mmask8 __U, __m512d __A) |
|
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
- VEXTRACTPS
- VHADDPD
- VHADDPS
- VHSUBPD
- VHSUBPS
- VINSERTF128
- VINSERTPS
- VLDDQU
- VLDMXCSR
- VMASKMOVDQU
- VMASKMOVPD
- VMASKMOVPS
- VMAXPD
- VMAXPS
- VMAXSD
- VMAXSS
- VMINPD
- VMINPS
- VMINSD
- VMINSS
- VMOVAPS
- VMOVD
- VMOVDDUP
- VMOVDQA
- VMOVDQU
- VMOVHLPS
- VMOVHPD
- VMOVHPS
- VMOVLHPS
- VMOVLPD
- VMOVLPS
- VMOVMSKPD
- VMOVMSKPS
- VMOVNTDQ
- VMOVNTDQA
- VMOVNTPD
- VMOVNTPS
- VMOVQ
- VMOVSD
- VMOVSHDUP
More AVX10.1 instructions
- VINSERTF32X8
- VINSERTF64X2
- VINSERTF64X4
- VINSERTI32X4
- VINSERTI32X8
- VINSERTI64X2
- VINSERTI64X4
- VINSERTPS
- VMAXPD
- VMAXPH
- VMAXPS
- VMAXSD
- VMAXSH
- VMAXSS
- VMINPD
- VMINPH
- VMINPS
- VMINSD
- VMINSH
- VMINSS
- VMOVAPS
- VMOVD
- VMOVDDUP
- VMOVDQA32
- VMOVDQA64
- VMOVDQU16
- VMOVDQU32
- VMOVDQU64
- VMOVDQU8
- VMOVHLPS
- VMOVHPD
- VMOVHPS
- VMOVLHPS
- VMOVLPD
- VMOVLPS
- VMOVNTDQ
- VMOVNTDQA
- VMOVNTPD
- VMOVNTPS
- VMOVQ
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-37 (MOVAPD)
- 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.