Instruction
VMOVDQA32
Moves integer vectors between registers and aligned memory, masked at doubleword granularity.
- Extensions
- Forms
- 9 (9 EVEX)
- Data
- Intel XED v2026.08.23
VMOVDQA32 is the AVX-512 form of MOVDQA with a write mask that selects doublewords: an aligned load, store or register copy of 16, 32 or 64 bytes. The address must be aligned to the full width of the move even where the mask leaves elements out. Unmasked it moves the same bits as VMOVDQA64, whose page covers registers 16 to 31 and the names the compilers give a plain 512-bit copy. The doubleword mask is what this name adds:
- Merging. On Zen 5,
vmovdqa32 zmm9{k5}, [mem]with D5E1h in the low 16 bits of K5 loaded doublewords 0, 5 to 8, 10, 12, 14 and 15 and kept the other seven of ZMM9. - Zeroing.
vmovdqa32 ymm5{k3}{z}, ymm5with EBh in the low byte of K3 zeroed doublewords 2 and 4 and the bits from 256 up. - Stores write only the selected doublewords and leave the rest of
the memory alone. They cannot zero: the SDM makes a store with
{z}raise #UD (Table 2-42).
In compiled code
GCC 14 at -O2 with -march=x86-64-v4 aligns global int arrays to
64 bytes and loads and stores them with VMOVDQA32 in vectorized
loops; Clang 23 keeps to ymm registers and VMOVDQU there. Both compile
_mm512_mask_load_epi32, _mm512_maskz_load_epi32,
_mm512_mask_store_epi32 and _mm512_mask_blend_epi32 to VMOVDQA32.
Conditions become masks. For b[i] > 0 ? c[i] : 0, GCC loads c
with a zero-masked VMOVDQA32 under the mask of a
VPCMPD. For if (a[i] > b[i]) a[i] += b[i]; it adds
all elements and stores the sums with a merge-masked VMOVDQA32,
skipping the store when KORTESTW finds no element
selected. Intel’s optimization manual compares such variants: in its
Example 17-6, computing both outcomes of a condition and merging them
with a masked VMOVDQA32 before the store ran 1.23 times as fast as
masking each arithmetic step, which chains them (Section 17.2.3).
AMD’s Zen 5 latency spreadsheet gives the masked EVEX forms one cycle and four per cycle on any of the four vector pipes. Zen 5’s 9 recorded cases cover every form, masked, at all three widths.
Forms
| Instruction | Encoding | Requires |
|---|---|---|
VMOVDQA32 zmm {k}{z}, zmm
VMOVDQA32_ZMMu32_MASKmskw_ZMMu32_AVX512 | EVEX.512.66.0F.W0 6F /rEVEX.512.66.0F.W0 7F /r | AVX10.1 or AVX512F |
VMOVDQA32 zmm {k}{z}, m512
VMOVDQA32_ZMMu32_MASKmskw_MEMu32_AVX512 | EVEX.512.66.0F.W0 6F /r | AVX10.1 or AVX512F |
VMOVDQA32 m512 {k}, zmm
VMOVDQA32_MEMu32_MASKmskw_ZMMu32_AVX512 | EVEX.512.66.0F.W0 7F /r | AVX10.1 or AVX512F |
VMOVDQA32 xmm {k}{z}, xmm
VMOVDQA32_XMMu32_MASKmskw_XMMu32_AVX512 | EVEX.128.66.0F.W0 6F /rEVEX.128.66.0F.W0 7F /r | AVX10.1 or AVX512F + AVX512VL |
VMOVDQA32 xmm {k}{z}, m128
VMOVDQA32_XMMu32_MASKmskw_MEMu32_AVX512 | EVEX.128.66.0F.W0 6F /r | AVX10.1 or AVX512F + AVX512VL |
VMOVDQA32 m128 {k}, xmm
VMOVDQA32_MEMu32_MASKmskw_XMMu32_AVX512 | EVEX.128.66.0F.W0 7F /r | AVX10.1 or AVX512F + AVX512VL |
VMOVDQA32 ymm {k}{z}, ymm
VMOVDQA32_YMMu32_MASKmskw_YMMu32_AVX512 | EVEX.256.66.0F.W0 6F /rEVEX.256.66.0F.W0 7F /r | AVX10.1 or AVX512F + AVX512VL |
VMOVDQA32 ymm {k}{z}, m256
VMOVDQA32_YMMu32_MASKmskw_MEMu32_AVX512 | EVEX.256.66.0F.W0 6F /r | AVX10.1 or AVX512F + AVX512VL |
VMOVDQA32 m256 {k}, ymm
VMOVDQA32_MEMu32_MASKmskw_YMMu32_AVX512 | EVEX.256.66.0F.W0 7F /r | AVX10.1 or AVX512F + AVX512VL |
Latency and throughput
| Model | 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 | m512 {k}, zmmm128 {k}, xmmm256 {k}, ymm | xmm {k}{z}, xmmno maskymm {k}{z}, ymmno mask | 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 |
|---|---|---|---|---|---|---|---|---|---|---|
| Skylake-SP | 1 / 0.5p05 | 1 / 0.5p05 | 8 / 0.5p015 | 8 / 0.5p015 | 1 / 1p2347 | 1 / 0.33p015 | 1 / 0.33p015 | 7 / 0.5p015 | 7 / 0.5p015 | 8 / 0.5p015 |
| Ice Lake | 1 / 0.5p05 | 1 / 0.5p05 | 8 / 0.5p015 | 8 / 0.5p015 | 1 / 0.5p4789 | 1 / 0.33p015 | 1 / 0.33p015 | 7 / 0.5p015 | 7 / 0.5p015 | 8 / 0.5p015 |
| Sapphire Rapids | 1 / 0 | 1 / 0.5p05 | 8 / 0.33p2 p3 p10 | 9 / 0.5p05 | 12 / 0.5p4789 | 1 / 0 | 1 / 0.33p015 | 7 / 0.33p2 p3 p10 | 8 / 0.33p015 | 9 / 0.33p015 |
| Zen 4 | 0 / 0.17 | 0 / 0.17 | 8 / 0.5FP45 LSU Load | 8 / 0.5FP45 LSU Load | 1 / 1FP45 FPSt LSU Store | 0 / 0.17 | 0 / 0.17 | 8 / 0.5FP45 LSU Load | 8 / 0.5FP45 LSU Load | 8 / 0.5FP45 LSU Load |
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.
VMOVDQA32 xmm {k}{z}, xmm/m128 VMOVDQA32 ymm {k}{z}, ymm/m256 VMOVDQA32 zmm {k}{z}, zmm/m512merging, {k1}
zeroing, {k1}{z}
Example mask k1 = 0x0B. Every doubleword works alike: 4, 8 and 16 doublewords in the xmm, ymm and zmm forms.
With merging: result doublewords 3 to 0: a3, unchanged, a1, a0.
With zeroing: result doublewords 3 to 0: a3, 0, a1, a0.
VMOVDQA32 m128 {k}, xmm VMOVDQA32 m256 {k}, ymm VMOVDQA32 m512 {k}, zmmExample mask k1 = 0x0B. Every doubleword works alike: 4, 8 and 16 doublewords in the xmm, ymm and zmm forms.
Memory doublewords 3 to 0: a3, unchanged, a1, a0.
Operation
What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.
VMOVDQA32 xmm {k}{z}, xmm/m128 VMOVDQA32 ymm {k}{z}, ymm/m256 VMOVDQA32 zmm {k}{z}, zmm/m512for i in range(VL // 32):
if k1[i]:
zmm1.d[i] = src2.d[i]
elif zeroing:
zmm1.d[i] = 0
# else: zmm1.d[i] keeps its value
# zmm1 is zeroed from bit VL upRun on AMD Zen 5 (EPYC 9645): 6 cases.
VMOVDQA32 m128 {k}, xmm VMOVDQA32 m256 {k}, ymm VMOVDQA32 m512 {k}, zmmfor i in range(VL // 32):
if k1[i]:
mem.d[i] = zmm2.d[i]
# else: mem.d[i] is not writtenRun on AMD Zen 5 (EPYC 9645): 3 cases.
Operands
| Operand | Kind | Action |
|---|---|---|
VMOVDQA32 xmm {k}{z}, xmm/m128 VMOVDQA32 ymm {k}{z}, ymm/m256 VMOVDQA32 zmm {k}{z}, zmm/m512 | ||
xmm, ymm, zmm | explicit | write (masked) |
{k} | explicit | read (write mask) |
xmm/m128, ymm/m256, zmm/m512 | explicit | read |
VMOVDQA32 m128 {k}, xmm VMOVDQA32 m256 {k}, ymm VMOVDQA32 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.
- All forms
AVX512-E1
Attributes
What else XED records about the forms. How to read.
- All forms
- write masking
- Memory forms
- aligned memory operand; memory fault suppression
Intrinsics
The C intrinsics of Clang 23.1.2 that compile to VMOVDQA32, 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_mask_blend_epi32
__m128i _mm_mask_blend_epi32(__mmask8 __U, __m128i __A, __m128i __W) |
|
_mm_mask_load_epi32
__m128i _mm_mask_load_epi32(__m128i __W, __mmask8 __U, const void *__P) |
|
_mm_mask_mov_epi32
__m128i _mm_mask_mov_epi32(__m128i __W, __mmask8 __U, __m128i __A) |
|
_mm_mask_store_epi32
void _mm_mask_store_epi32(void *__P, __mmask8 __U, __m128i __A) |
|
_mm_maskz_load_epi32
__m128i _mm_maskz_load_epi32(__mmask8 __U, const void *__P) |
|
_mm_maskz_mov_epi32
__m128i _mm_maskz_mov_epi32(__mmask8 __U, __m128i __A) |
|
_mm256_mask_blend_epi32
__m256i _mm256_mask_blend_epi32(__mmask8 __U, __m256i __A, __m256i __W) |
|
_mm256_mask_load_epi32
__m256i _mm256_mask_load_epi32(__m256i __W, __mmask8 __U, const void *__P) |
|
_mm256_mask_mov_epi32
__m256i _mm256_mask_mov_epi32(__m256i __W, __mmask8 __U, __m256i __A) |
|
_mm256_mask_store_epi32
void _mm256_mask_store_epi32(void *__P, __mmask8 __U, __m256i __A) |
|
_mm256_maskz_load_epi32
__m256i _mm256_maskz_load_epi32(__mmask8 __U, const void *__P) |
|
_mm256_maskz_mov_epi32
__m256i _mm256_maskz_mov_epi32(__mmask8 __U, __m256i __A) |
|
_mm512_load_epi32
__m512i _mm512_load_epi32(const void *__P) |
|
_mm512_store_epi32
void _mm512_store_epi32(void *__P, __m512i __A) |
|
_mm512_mask_blend_epi32
__m512i _mm512_mask_blend_epi32(__mmask16 __U, __m512i __A, __m512i __W) |
|
_mm512_mask_load_epi32
__m512i _mm512_mask_load_epi32(__m512i __W, __mmask16 __U, const void *__P) |
|
_mm512_mask_mov_epi32
__m512i _mm512_mask_mov_epi32(__m512i __W, __mmask16 __U, __m512i __A) |
|
_mm512_mask_store_epi32
void _mm512_mask_store_epi32(void *__P, __mmask16 __U, __m512i __A) |
|
_mm512_maskz_load_epi32
__m512i _mm512_maskz_load_epi32(__mmask16 __U, const void *__P) |
|
_mm512_maskz_mov_epi32
__m512i _mm512_maskz_mov_epi32(__mmask16 __U, __m512i __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 |
|---|---|---|
AVX512F_512 | AVX10.1 or AVX512F | Cannon Lake, Ice Lake (client), Tiger Lake, Nova Lake, Skylake-SP, Cascade Lake, Cooper Lake, Ice Lake (server), Sapphire Rapids, Emerald Rapids, Granite Rapids, Diamond Rapids, Knights Landing, Knights Mill, Zen 4, Zen 5, Zen 6 |
AVX512F_128 | AVX10.1 or AVX512F + AVX512VL | Cannon Lake, Ice Lake (client), Tiger Lake, Nova Lake, Skylake-SP, Cascade Lake, Cooper Lake, Ice Lake (server), Sapphire Rapids, Emerald Rapids, Granite Rapids, Diamond Rapids, Zen 4, Zen 5, Zen 6 |
AVX512F_256 | Same as AVX512F_128 | Same as AVX512F_128 |
More AVX10.1 instructions
- VINSERTI32X8
- VINSERTI64X2
- VINSERTI64X4
- VINSERTPS
- VMAXPD
- VMAXPH
- VMAXPS
- VMAXSD
- VMAXSH
- VMAXSS
- VMINPD
- VMINPH
- VMINPS
- VMINSD
- VMINSH
- VMINSS
- VMOVAPD
- VMOVAPS
- VMOVD
- VMOVDDUP
- VMOVDQA64
- VMOVDQU16
- VMOVDQU32
- VMOVDQU64
- VMOVDQU8
- VMOVHLPS
- VMOVHPD
- VMOVHPS
- VMOVLHPS
- VMOVLPD
- VMOVLPS
- VMOVNTDQ
- VMOVNTDQA
- VMOVNTPD
- VMOVNTPS
- VMOVQ
- VMOVSD
- VMOVSH
- VMOVSHDUP
- VMOVSLDUP
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 Advanced Vector Extensions 10.2 Architecture Specification, revision 7.0 (361050-007, April 2026)
- 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 Optimization Reference Manual, Volume 1 (248966-051, October 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.