Instruction
VMOVDQU16
Moves integer vectors between registers and memory without an alignment requirement, masked at word granularity.
- Extensions
- Forms
- 9 (9 EVEX)
- Data
- Intel XED v2026.08.23
VMOVDQU16 is the masked move of AVX512BW at word granularity: one bit of the mask register per word, 8, 16 or 32 of them, decides whether that word is loaded, stored or copied. Without a mask it is the same unaligned move as VMOVDQU8, whose page explains masked loads at the end of a buffer, fault suppression, zeroing and masked stores; only the element the mask counts in differs. A mask for a ZMM register is 32 bits, filled with KMOVD.
Recorded on Zen 5
The 63 recorded cases cover loads, stores and both register-to-register encodings at all three widths, the memory forms at an address 16 bytes past a 64-byte boundary; none faulted.
- Masked store.
vmovdqu16 zmmword ptr [mem]{k3}, zmm5, with 55555555h in the low 32 bits of K3, wrote the 16 even words and left the odd words of memory as they were. - Zeroing.
vmovdqu16 zmm7{k6}{z}, zmmword ptr [mem], with 55555555h in K6 as well, loaded the even words and cleared the odd ones. - The store-form encoding between registers,
{store}, takes{z}as well:vmovdqu16 xmm7{k6}{z}, xmm12kept words 0, 2, 4 and 6 of XMM12 by 55h and zeroed the rest.
In compiled code
GCC 14 and Clang 23 at -O2 compile _mm512_maskz_loadu_epi16,
_mm512_mask_storeu_epi16 and _mm512_mask_blend_epi16 to it, and a
tail load with a mask from _bzhi_u32(~0u, n) to BZHI, KMOVD and a
zero-masked VMOVDQU16. With -march=sapphirerapids it also moves
half-precision data: the SDM defines no packed half-precision move or
blend, so both compilers use VMOVDQU16 for _mm512_mask_blend_ph and
for a select between _Float16 arrays, after a
VCMPPH has written the mask.
AMD’s Zen 5 latency spreadsheet lists VMOVDQU16 with VMOVDQU8: one macro-op of one cycle on any of the four vector pipes, four per cycle, and notes that with K0 the register, load and store forms are handled as plain moves, loads and stores.
Forms
| Instruction | Encoding | Requires |
|---|---|---|
VMOVDQU16 xmm {k}{z}, xmm
VMOVDQU16_XMMu16_MASKmskw_XMMu16_AVX512 | EVEX.128.F2.0F.W1 6F /rEVEX.128.F2.0F.W1 7F /r | AVX10.1 or AVX512BW + AVX512VL |
VMOVDQU16 xmm {k}{z}, m128
VMOVDQU16_XMMu16_MASKmskw_MEMu16_AVX512 | EVEX.128.F2.0F.W1 6F /r | AVX10.1 or AVX512BW + AVX512VL |
VMOVDQU16 m128 {k}, xmm
VMOVDQU16_MEMu16_MASKmskw_XMMu16_AVX512 | EVEX.128.F2.0F.W1 7F /r | AVX10.1 or AVX512BW + AVX512VL |
VMOVDQU16 ymm {k}{z}, ymm
VMOVDQU16_YMMu16_MASKmskw_YMMu16_AVX512 | EVEX.256.F2.0F.W1 6F /rEVEX.256.F2.0F.W1 7F /r | AVX10.1 or AVX512BW + AVX512VL |
VMOVDQU16 ymm {k}{z}, m256
VMOVDQU16_YMMu16_MASKmskw_MEMu16_AVX512 | EVEX.256.F2.0F.W1 6F /r | AVX10.1 or AVX512BW + AVX512VL |
VMOVDQU16 m256 {k}, ymm
VMOVDQU16_MEMu16_MASKmskw_YMMu16_AVX512 | EVEX.256.F2.0F.W1 7F /r | AVX10.1 or AVX512BW + AVX512VL |
VMOVDQU16 zmm {k}{z}, zmm
VMOVDQU16_ZMMu16_MASKmskw_ZMMu16_AVX512 | EVEX.512.F2.0F.W1 6F /rEVEX.512.F2.0F.W1 7F /r | AVX10.1 or AVX512BW |
VMOVDQU16 zmm {k}{z}, m512
VMOVDQU16_ZMMu16_MASKmskw_MEMu16_AVX512 | EVEX.512.F2.0F.W1 6F /r | AVX10.1 or AVX512BW |
VMOVDQU16 m512 {k}, zmm
VMOVDQU16_MEMu16_MASKmskw_ZMMu16_AVX512 | EVEX.512.F2.0F.W1 7F /r | AVX10.1 or AVX512BW |
Latency and throughput
| Model | 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 | m128 {k}, xmmm256 {k}, ymmm512 {k}, zmm | ymm {k}{z}, m256no maskzmm {k}{z}, m512no mask | ymm {k}{z}, m256with a mask, zeroing | zmm {k}{z}, zmmno mask | zmm {k}{z}, zmmwith a mask, zeroing | zmm {k}{z}, m512with a mask, zeroing |
|---|---|---|---|---|---|---|---|---|---|---|
| Skylake-SP | 1 / 0.33p015 | 1 / 0.33p015 | 7 / 0.5p015 | 7 / 0.5p015 | 1 / 1p2347 | 8 / 0.5p015 | 8 / 0.5p015 | 1 / 0.5p05 | 1 / 0.5p05 | 8 / 0.5p015 |
| Ice Lake | 1 / 0.33p015 | 1 / 0.33p015 | 7 / 0.5p015 | 7 / 0.5p015 | 1 / 0.5p4789 | 8 / 0.5p015 | 8 / 0.5p015 | 1 / 0.5p05 | 1 / 0.5p05 | 8 / 0.5p015 |
| Sapphire Rapids | 1 / 0 | 3 / 0.33p015 | 7 / 0.33p2 p3 p10 | 11 / 0.33p015 | 12 / 0.5p4789 | 8 / 0.33p2 p3 p10 | 11 / 0.33p015 | 1 / 0 | 3 / 0.5p05 | 11 / 0.5p05 |
| Zen 4 | 0 / 0.17 | 0 / 0.17 | 8 / 0.5FP45 LSU Load | 8 / 0.5FP45 LSU Load | 1 / 1FP45 FPSt LSU Store | 8 / 0.5FP45 LSU Load | 8 / 0.5FP45 LSU Load | 0 / 0.17 | 0 / 0.17 | 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.
VMOVDQU16 xmm {k}{z}, xmm/m128 VMOVDQU16 ymm {k}{z}, ymm/m256 VMOVDQU16 zmm {k}{z}, zmm/m512merging, {k1}
zeroing, {k1}{z}
Example mask k1 = 0xB2. Every word works alike: 8, 16 and 32 words in the xmm, ymm and zmm forms.
With merging: result words 7 to 0: a7, unchanged, a5, a4, unchanged, unchanged, a1, unchanged.
With zeroing: result words 7 to 0: a7, 0, a5, a4, 0, 0, a1, 0.
VMOVDQU16 m128 {k}, xmm VMOVDQU16 m256 {k}, ymm VMOVDQU16 m512 {k}, zmmExample mask k1 = 0xB2. Every word works alike: 8, 16 and 32 words in the xmm, ymm and zmm forms.
Memory words 7 to 0: a7, unchanged, a5, a4, unchanged, unchanged, a1, unchanged.
Operation
What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.
VMOVDQU16 xmm {k}{z}, xmm/m128 VMOVDQU16 ymm {k}{z}, ymm/m256 VMOVDQU16 zmm {k}{z}, zmm/m512for i in range(VL // 16):
if k1[i]:
zmm1.w[i] = src2.w[i]
elif zeroing:
zmm1.w[i] = 0
# else: zmm1.w[i] keeps its value
# zmm1 is zeroed from bit VL upRun on AMD Zen 5 (EPYC 9645): 48 cases.
VMOVDQU16 m128 {k}, xmm VMOVDQU16 m256 {k}, ymm VMOVDQU16 m512 {k}, zmmfor i in range(VL // 16):
if k1[i]:
mem.w[i] = zmm2.w[i]
# else: mem.w[i] is not writtenRun on AMD Zen 5 (EPYC 9645): 15 cases.
Operands
| Operand | Kind | Action |
|---|---|---|
VMOVDQU16 xmm {k}{z}, xmm/m128 VMOVDQU16 ymm {k}{z}, ymm/m256 VMOVDQU16 zmm {k}{z}, zmm/m512 | ||
xmm, ymm, zmm | explicit | write (masked) |
{k} | explicit | read (write mask) |
xmm/m128, ymm/m256, zmm/m512 | explicit | read |
VMOVDQU16 m128 {k}, xmm VMOVDQU16 m256 {k}, ymm VMOVDQU16 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-E4
Attributes
What else XED records about the forms. How to read.
- All forms
- write masking
- Memory forms
- memory fault suppression
Intrinsics
The C intrinsics of Clang 23.1.2 that compile to VMOVDQU16, 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_epi16
__m128i _mm_mask_blend_epi16(__mmask8 __U, __m128i __A, __m128i __W) |
|
_mm_mask_blend_pbh
__m128bh _mm_mask_blend_pbh(__mmask8 __U, __m128bh __A, __m128bh __W) |
|
_mm_mask_blend_ph
__m128h _mm_mask_blend_ph(__mmask8 __U, __m128h __A, __m128h __W) |
|
_mm_mask_loadu_epi16
__m128i _mm_mask_loadu_epi16(__m128i __W, __mmask8 __U, const void *__P) |
|
_mm_mask_mov_epi16
__m128i _mm_mask_mov_epi16(__m128i __W, __mmask8 __U, __m128i __A) |
|
_mm_mask_store_sbh
void _mm_mask_store_sbh(void *__W, __mmask8 __U, __m128bh __A) |
|
_mm_mask_storeu_epi16
void _mm_mask_storeu_epi16(void *__P, __mmask8 __U, __m128i __A) |
|
_mm_maskz_load_sbh
__m128bh _mm_maskz_load_sbh(__mmask8 __U, const void *__A) |
|
_mm_maskz_loadu_epi16
__m128i _mm_maskz_loadu_epi16(__mmask8 __U, const void *__P) |
|
_mm_maskz_mov_epi16
__m128i _mm_maskz_mov_epi16(__mmask8 __U, __m128i __A) |
|
_mm256_mask_blend_epi16
__m256i _mm256_mask_blend_epi16(__mmask16 __U, __m256i __A, __m256i __W) |
|
_mm256_mask_blend_pbh
__m256bh _mm256_mask_blend_pbh(__mmask16 __U, __m256bh __A, __m256bh __W) |
|
_mm256_mask_blend_ph
__m256h _mm256_mask_blend_ph(__mmask16 __U, __m256h __A, __m256h __W) |
|
_mm256_mask_loadu_epi16
__m256i _mm256_mask_loadu_epi16(__m256i __W, __mmask16 __U, const void *__P) |
|
_mm256_mask_mov_epi16
__m256i _mm256_mask_mov_epi16(__m256i __W, __mmask16 __U, __m256i __A) |
|
_mm256_mask_storeu_epi16
void _mm256_mask_storeu_epi16(void *__P, __mmask16 __U, __m256i __A) |
|
_mm256_maskz_loadu_epi16
__m256i _mm256_maskz_loadu_epi16(__mmask16 __U, const void *__P) |
|
_mm256_maskz_mov_epi16
__m256i _mm256_maskz_mov_epi16(__mmask16 __U, __m256i __A) |
|
_mm512_loadu_epi16
__m512i _mm512_loadu_epi16(const void *__P) |
|
_mm512_storeu_epi16
void _mm512_storeu_epi16(void *__P, __m512i __A) |
|
_mm512_mask_blend_epi16
__m512i _mm512_mask_blend_epi16(__mmask32 __U, __m512i __A, __m512i __W) |
|
_mm512_mask_blend_pbh
__m512bh _mm512_mask_blend_pbh(__mmask32 __U, __m512bh __A, __m512bh __W) |
|
_mm512_mask_blend_ph
__m512h _mm512_mask_blend_ph(__mmask32 __U, __m512h __A, __m512h __W) |
|
_mm512_mask_loadu_epi16
__m512i _mm512_mask_loadu_epi16(__m512i __W, __mmask32 __U, const void *__P) |
|
_mm512_mask_mov_epi16
__m512i _mm512_mask_mov_epi16(__m512i __W, __mmask32 __U, __m512i __A) |
|
_mm512_mask_storeu_epi16
void _mm512_mask_storeu_epi16(void *__P, __mmask32 __U, __m512i __A) |
|
_mm512_maskz_loadu_epi16
__m512i _mm512_maskz_loadu_epi16(__mmask32 __U, const void *__P) |
|
_mm512_maskz_mov_epi16
__m512i _mm512_maskz_mov_epi16(__mmask32 __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 |
|---|---|---|
AVX512BW_128 | AVX10.1 or AVX512BW + 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 |
AVX512BW_256 | Same as AVX512BW_128 | Same as AVX512BW_128 |
AVX512BW_512 | AVX10.1 or AVX512BW | Same as AVX512BW_128 |
More AVX10.1 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. - 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-64 (MOVDQU,VMOVDQU8/
16/ 32/ 64) - 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.