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, xmm2 left 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

Every encoding of VMOVDQA that Intel XED knows, one row per XED instruction form (iform). How to read the notation.
InstructionEncodingRequires
VMOVDQA xmm, m128 VMOVDQA_XMMdq_MEMdqVEX.128.66.0F.WIG 6F /rAVX
VMOVDQA xmm, xmm VMOVDQA_XMMdq_XMMdq_6FVEX.128.66.0F.WIG 6F /rAVX
VMOVDQA m128, xmm VMOVDQA_MEMdq_XMMdqVEX.128.66.0F.WIG 7F /rAVX
VMOVDQA xmm, xmm VMOVDQA_XMMdq_XMMdq_7FVEX.128.66.0F.WIG 7F /rAVX
VMOVDQA ymm, m256 VMOVDQA_YMMqq_MEMqqVEX.256.66.0F.WIG 6F /rAVX
VMOVDQA ymm, ymm VMOVDQA_YMMqq_YMMqq_6FVEX.256.66.0F.WIG 6F /rAVX
VMOVDQA m256, ymm VMOVDQA_MEMqq_YMMqqVEX.256.66.0F.WIG 7F /rAVX
VMOVDQA ymm, ymm VMOVDQA_YMMqq_YMMqq_7FVEX.256.66.0F.WIG 7F /rAVX

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.

A move: each doubleword is copied to the same place.
VMOVDQA: element by elementResult doubleword i is doubleword i of xmm2. Result doublewords 3 to 0: a3, a2, a1, a0.0123xmm2or m128aa0a1a2a3xmm1

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 up

Run on AMD Zen 5 (EPYC 9645): 8 cases.

Operands

What each form reads and writes, as Intel XED records it: the operands of its syntax, in order, and the implicit ones that the syntax does not name. How to read.
OperandKindAction
VMOVDQA xmm, xmm/m128 VMOVDQA ymm, ymm/m256
xmm, ymmexplicitwrite
xmm/m128, ymm/m256explicitread
VMOVDQA xmm/m128, xmm VMOVDQA ymm/m256, ymm
xmm/m128, ymm/m256explicitwrite
xmm, ymmexplicitread

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.

IntrinsicCompiles to
_mm_load_epi32 __m128i _mm_load_epi32(const void *__P)

VMOVDQA xmm, m128 VEX.128 -mavx512vl

_mm_load_epi64 __m128i _mm_load_epi64(const void *__P)

VMOVDQA xmm, m128 VEX.128 -mavx512vl

_mm_load_si128 __m128i _mm_load_si128(const __m128i *__p)

VMOVDQA xmm, m128 VEX.128 -mavxwith AVX enabled

_mm_store_epi32 void _mm_store_epi32(void *__P, __m128i __A)

VMOVDQA m128, xmm VEX.128 -mavx512vl

_mm_store_epi64 void _mm_store_epi64(void *__P, __m128i __A)

VMOVDQA m128, xmm VEX.128 -mavx512vl

_mm256_load_epi32 __m256i _mm256_load_epi32(const void *__P)

VMOVDQA ymm, m256 VEX.256 -mavx512vl

_mm256_load_epi64 __m256i _mm256_load_epi64(const void *__P)

VMOVDQA ymm, m256 VEX.256 -mavx512vl

_mm256_load_si256 __m256i _mm256_load_si256(const __m256i *__p)

VMOVDQA ymm, m256 VEX.256 -mavxClang emits the equivalent VMOVAPS

_mm256_store_epi32 void _mm256_store_epi32(void *__P, __m256i __A)

VMOVDQA m256, ymm VEX.256 -mavx512vl

_mm256_store_epi64 void _mm256_store_epi64(void *__P, __m256i __A)

VMOVDQA m256, ymm VEX.256 -mavx512vl

_mm256_store_si256 void _mm256_store_si256(__m256i *__p, __m256i __a)

VMOVDQA m256, ymm VEX.256 -mavxClang emits the equivalent VMOVAPS

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.

CPUID requirements and processors of the XED ISA sets above. Alternatives are separated by “or”; processors follow XED’s chip model, whose AMD processors end with Zen 2, and the CPU data of this site for Zen 3 to Zen 6.

More AVX instructions

All 253 AVX instructions

Sources

  1. Intel XED v2026.08.23 (commit 0bcb6237345c): forms, encodings, operands, flags, exception classes, attributes, ISA sets, CPUID bits and chip model.
  2. The CPU data of x86-64.net: Zen 3 to Zen 6, from GCC’s -march feature sets and AMD’s Processor Programming References, which the page of each processor cites.
  3. 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.
  4. Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-093, September 2026): Volume 2B, page 4-59 (MOVDQA,VMOVDQA32/64)
  5. Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 1 (253665-093, September 2026)
  6. 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.