Instruction
VMOVDQA
Moves 128 or 256 bits of integer data between vector registers and memory, which must be aligned to the vector size.
- Extensions
- Forms
- 8 (8 VEX)
- Data
- Intel XED v2026.08.23
VMOVDQA is the VEX form of MOVDQA: a load, store or register copy of 16 or 32 bytes, with memory aligned to that size. The MOVDQA page covers the alignment rule, the #GP that breaks it and the atomicity of aligned 16-byte accesses. What VEX changes:
- 32 bytes, aligned to 32. The VEX.256 forms move a whole YMM register and fault on an address that is a multiple of 16 but not of 32, which a 16-byte habit can miss: a stack slot that the System V rule aligns for SSE is not necessarily aligned for this form.
- An exception among VEX instructions. Most VEX instructions take memory at any address, so VPADDD and its kin fold loads without a check; VMOVDQA keeps one, as do the other aligned moves.
- Clearing above the width. On Zen 5,
vmovdqa xmm1, xmm2left bits 128 to 511 of ZMM1 zero, in both of its encodings (opcodes 6F and 7F, chosen with{load}and{store}).
There is no EVEX VMOVDQA. AVX-512 names the move by the element size of its mask, VMOVDQA32 and VMOVDQA64, and only they reach ZMM registers and XMM16 to XMM31.
In compiled code
GCC 14 at -O2 with -march=x86-64-v3 uses VMOVDQA for
_mm_load_si128, _mm256_load_si256 and their stores, and to copy
integer vectors between registers, such as vmovdqa ymm1, ymm0 to
save an argument before overwriting it. Clang 23 compiles the same
intrinsics to VMOVAPS, the same bits under a float
name, but stores the results of an aligned int loop with VMOVDQA.
With -march=x86-64-v4, GCC moves 512-bit integer vectors with
VMOVDQA64 or VMOVDQA32 and keeps VMOVDQA for ymm registers that VEX
can name.
Where the alignment cannot be shown, compilers use VMOVDQU instead, which AMD’s Zen 5 guide says performs the same on aligned data (Section 2.6.2). Zen 5’s 8 recorded cases cover the loads, the stores and both register encodings at 128 and 256 bits, all at an aligned address.
In the optimization guide
What the optimization guide says about VMOVDQA, a line per claim. Each links to the claim in the guide, with its sources and where they differ.
Out of order
- Move elimination: A register-to-register copy can be made at renaming, by pointing the destination at the physical register of the source; the move then has no latency and uses no execution unit.
Forms
| Instruction | Encoding | Requires |
|---|---|---|
VMOVDQA xmm, m128
VMOVDQA_XMMdq_MEMdq | VEX.128.66.0F.WIG 6F /r | AVX |
VMOVDQA xmm, xmm
VMOVDQA_XMMdq_XMMdq_6F | VEX.128.66.0F.WIG 6F /r | AVX |
VMOVDQA m128, xmm
VMOVDQA_MEMdq_XMMdq | VEX.128.66.0F.WIG 7F /r | AVX |
VMOVDQA xmm, xmm
VMOVDQA_XMMdq_XMMdq_7F | VEX.128.66.0F.WIG 7F /r | AVX |
VMOVDQA ymm, m256
VMOVDQA_YMMqq_MEMqq | VEX.256.66.0F.WIG 6F /r | AVX |
VMOVDQA ymm, ymm
VMOVDQA_YMMqq_YMMqq_6F | VEX.256.66.0F.WIG 6F /r | AVX |
VMOVDQA m256, ymm
VMOVDQA_MEMqq_YMMqq | VEX.256.66.0F.WIG 7F /r | AVX |
VMOVDQA ymm, ymm
VMOVDQA_YMMqq_YMMqq_7F | VEX.256.66.0F.WIG 7F /r | AVX |
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.
Every doubleword works alike: 4 and 8 doublewords in the xmm and ymm forms. The store forms copy the same way, from the register to memory.
Result doubleword i is doubleword i of xmm2. Result doublewords 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 is zeroed from bit VL upRun on AMD Zen 5 (EPYC 9645): 8 cases.
Operands
| Operand | Kind | Action |
|---|---|---|
VMOVDQA xmm, xmm/m128 VMOVDQA ymm, ymm/m256 | ||
xmm, ymm | explicit | write |
xmm/m128, ymm/m256 | explicit | read |
VMOVDQA xmm/m128, xmm VMOVDQA ymm/m256, ymm | ||
xmm/m128, ymm/m256 | explicit | write |
xmm, ymm | 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
avx-type-1
Attributes
What else XED records about the forms. How to read.
- Memory forms
- aligned memory operand
Intrinsics
The C intrinsics of Clang 23.1.2 that compile to VMOVDQA, 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_epi32
__m128i _mm_load_epi32(const void *__P) |
|
_mm_load_epi64
__m128i _mm_load_epi64(const void *__P) |
|
_mm_load_si128
__m128i _mm_load_si128(const __m128i *__p) |
|
_mm_store_epi32
void _mm_store_epi32(void *__P, __m128i __A) |
|
_mm_store_epi64
void _mm_store_epi64(void *__P, __m128i __A) |
|
_mm256_load_epi32
__m256i _mm256_load_epi32(const void *__P) |
|
_mm256_load_epi64
__m256i _mm256_load_epi64(const void *__P) |
|
_mm256_load_si256
__m256i _mm256_load_si256(const __m256i *__p) |
|
_mm256_store_epi32
void _mm256_store_epi32(void *__P, __m256i __A) |
|
_mm256_store_epi64
void _mm256_store_epi64(void *__P, __m256i __A) |
|
_mm256_store_si256
void _mm256_store_si256(__m256i *__p, __m256i __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.
| ISA set | CPUID | Processors |
|---|---|---|
AVX | AVX | Sandy Bridge, Ivy Bridge, Haswell, Broadwell, Skylake, Comet Lake, Cannon Lake, Ice Lake (client), Tiger Lake, Alder Lake, Arrow Lake, Panther Lake, Nova Lake, Skylake-SP, Cascade Lake, Cooper Lake, Ice Lake (server), Sapphire Rapids, Emerald Rapids, Granite Rapids, Diamond Rapids, Sierra Forest, Clearwater Forest, Knights Landing, Knights Mill, Bulldozer, Piledriver, Zen, Zen+, Zen 2, Zen 3, Zen 4, Zen 5, Zen 6 |
More AVX 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-59 (MOVDQA,VMOVDQA32/
64) - Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 1 (253665-093, September 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.