Extensions
Forms
8 (8 VEX)
Data
Intel XED v2026.08.23

VMOVDQU is the VEX form of MOVDQU: a load, store or register copy of 16 or 32 bytes at any address. The MOVDQU page covers the move itself, the cost of crossing a cache line and what the manuals say about atomicity. What VEX changes:

  • 256 bits. The VEX.256 forms move a whole YMM register, the usual unaligned load and store of AVX2 integer code.
  • Clearing above the width. The 128-bit forms clear bits 128 and up of a destination register, which MOVDQU leaves alone. On Zen 5, vmovdqu xmm4, xmm4 kept the low 16 bytes of ZMM4 and zeroed the other 48.
  • No alignment rule elsewhere. VEX instructions such as VPADDD take memory operands at any address, so a load can often be folded into the arithmetic and no VMOVDQU is needed at all.

There is no EVEX VMOVDQU: AVX-512 splits it by element size for masking, into VMOVDQU8, VMOVDQU16, VMOVDQU32 and VMOVDQU64, which also reach ZMM registers and XMM16 to XMM31.

Which move the compilers pick

The encodings move the same bits, so the choice is a matter of taste:

-O2 withGCC 14Clang 23
-march=x86-64-v3, _mm256_loadu_si256VMOVDQUVMOVUPS
-march=x86-64-v3, int loopVMOVDQUVMOVDQU
-march=x86-64-v3, 32-byte memcpyVMOVDQUVMOVUPS
-march=x86-64-v4, int loopVMOVDQU32 on zmmVMOVDQU on ymm
-march=x86-64-v4, 64-byte memcpyVMOVDQU8 on zmmtwo VMOVUPS on ymm

The loop is a[i] = b[i] + c[i] over 1,024 ints, where both compilers fold one load into VPADDD and move the other operand and the result with these instructions. AMD’s Zen 5 guide states that the aligned and unaligned forms perform the same on aligned data, and that aligning 256-bit vectors to 32 bytes still pays (Section 2.6.2).

Zen 5’s 8 recorded cases cover the loads, the stores and both register encodings (opcodes 6F and 7F) at 128 and 256 bits.

Forms

Every encoding of VMOVDQU that Intel XED knows, one row per XED instruction form (iform). How to read the notation.
InstructionEncodingRequires
VMOVDQU xmm, m128 VMOVDQU_XMMdq_MEMdqVEX.128.F3.0F.WIG 6F /rAVX
VMOVDQU xmm, xmm VMOVDQU_XMMdq_XMMdq_6FVEX.128.F3.0F.WIG 6F /rAVX
VMOVDQU ymm, m256 VMOVDQU_YMMqq_MEMqqVEX.256.F3.0F.WIG 6F /rAVX
VMOVDQU ymm, ymm VMOVDQU_YMMqq_YMMqq_6FVEX.256.F3.0F.WIG 6F /rAVX
VMOVDQU m128, xmm VMOVDQU_MEMdq_XMMdqVEX.128.F3.0F.WIG 7F /rAVX
VMOVDQU xmm, xmm VMOVDQU_XMMdq_XMMdq_7FVEX.128.F3.0F.WIG 7F /rAVX
VMOVDQU m256, ymm VMOVDQU_MEMqq_YMMqqVEX.256.F3.0F.WIG 7F /rAVX
VMOVDQU ymm, ymm VMOVDQU_YMMqq_YMMqq_7FVEX.256.F3.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.
VMOVDQU: 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
VMOVDQU xmm, xmm/m128 VMOVDQU ymm, ymm/m256
xmm, ymmexplicitwrite
xmm/m128, ymm/m256explicitread
VMOVDQU xmm/m128, xmm VMOVDQU 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-4M

Intrinsics

The C intrinsics of Clang 23.1.2 that compile to VMOVDQU, 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_loadu_epi16 __m128i _mm_loadu_epi16(const void *__P)

VMOVDQU xmm, m128 VEX.128 -mavx512vl -mavx512bw

_mm_loadu_epi32 __m128i _mm_loadu_epi32(const void *__P)

VMOVDQU xmm, m128 VEX.128 -mavx512vl

_mm_loadu_epi64 __m128i _mm_loadu_epi64(const void *__P)

VMOVDQU xmm, m128 VEX.128 -mavx512vl

_mm_loadu_epi8 __m128i _mm_loadu_epi8(const void *__P)

VMOVDQU xmm, m128 VEX.128 -mavx512vl -mavx512bw

_mm_loadu_si128 __m128i _mm_loadu_si128(const __m128i_u *__p)

VMOVDQU xmm, m128 VEX.128 -mavxwith AVX enabled

_mm_storeu_epi16 void _mm_storeu_epi16(void *__P, __m128i __A)

VMOVDQU m128, xmm VEX.128 -mavx512vl -mavx512bw

_mm_storeu_epi32 void _mm_storeu_epi32(void *__P, __m128i __A)

VMOVDQU m128, xmm VEX.128 -mavx512vl

_mm_storeu_epi64 void _mm_storeu_epi64(void *__P, __m128i __A)

VMOVDQU m128, xmm VEX.128 -mavx512vl

_mm_storeu_epi8 void _mm_storeu_epi8(void *__P, __m128i __A)

VMOVDQU m128, xmm VEX.128 -mavx512vl -mavx512bw

_mm256_loadu_epi16 __m256i _mm256_loadu_epi16(const void *__P)

VMOVDQU ymm, m256 VEX.256 -mavx512vl -mavx512bw

_mm256_loadu_epi32 __m256i _mm256_loadu_epi32(const void *__P)

VMOVDQU ymm, m256 VEX.256 -mavx512vl

_mm256_loadu_epi64 __m256i _mm256_loadu_epi64(const void *__P)

VMOVDQU ymm, m256 VEX.256 -mavx512vl

_mm256_loadu_epi8 __m256i _mm256_loadu_epi8(const void *__P)

VMOVDQU ymm, m256 VEX.256 -mavx512vl -mavx512bw

_mm256_loadu_si256 __m256i _mm256_loadu_si256(const __m256i_u *__p)

VMOVDQU ymm, m256 VEX.256 -mavxClang emits the equivalent VMOVUPS

_mm256_storeu_epi16 void _mm256_storeu_epi16(void *__P, __m256i __A)

VMOVDQU m256, ymm VEX.256 -mavx512vl -mavx512bw

_mm256_storeu_epi32 void _mm256_storeu_epi32(void *__P, __m256i __A)

VMOVDQU m256, ymm VEX.256 -mavx512vl

_mm256_storeu_epi64 void _mm256_storeu_epi64(void *__P, __m256i __A)

VMOVDQU m256, ymm VEX.256 -mavx512vl

_mm256_storeu_epi8 void _mm256_storeu_epi8(void *__P, __m256i __A)

VMOVDQU m256, ymm VEX.256 -mavx512vl -mavx512bw

_mm256_storeu_si256 void _mm256_storeu_si256(__m256i_u *__p, __m256i __a)

VMOVDQU m256, ymm VEX.256 -mavxClang emits the equivalent VMOVUPS

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-64 (MOVDQU,VMOVDQU8/16/32/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.