Instruction
VMOVW
Moves 16 bits between an XMM register and a general-purpose register or memory, zeroing the rest of an XMM destination; AVX10.2 adds an XMM-to-XMM form.
VMOVW moves one 16-bit word between the lowest element of an XMM register and a general-purpose register or memory. It is the word-sized member of the family of VMOVD and VMOVQ, added by AVX512-FP16 so that a half-precision value, or its bit pattern, can travel in one instruction. Loading, it writes the word to bits 15:0 and clears every other bit of the vector register up to bit 511; storing to a general-purpose register, it clears the register’s other bits.
Why a new move
Before AVX512-FP16 a word went into a vector register with VPINSRW, which keeps the rest of the destination and so depends on its old contents, and came out with VPEXTRW; VMOVD moves two words, reading or writing two bytes too many in memory. VMOVW avoids both costs: it breaks the dependency on the destination, as VMOVD does, and touches exactly two bytes. It is EVEX-only (EVEX.128 in map 5, opcodes 6E and 7E, those of MOVD in the old map), so it reaches XMM16 to XMM31, but it takes no mask. The FP16 scalar move between XMM registers and memory is VMOVSH, which can also merge with a mask.
In our builds
With -march=sapphirerapids, GCC 14 and Clang 23 at -O2 use VMOVW to
reinterpret a _Float16 as its 16 bits and back through memcpy, and
for _mm_cvtsi16_si128(); for _mm_cvtsi128_si16() Clang 23 emits
VMOVW and GCC 14 VPEXTRW. Loading a _Float16 from memory, GCC 14 uses
VMOVW and Clang 23 VMOVSH. With -march=znver5, which lacks AVX512-FP16,
the same bit moves become VMOVD in GCC 14 and VPINSRW and VPEXTRW in
Clang 23, and a load is a VPINSRW into whatever the register held.
Where it runs
VMOVW needs AVX512_FP16 (CPUID leaf 7, EDX bit 23) or AVX10.1, which includes it. AMD’s Zen 5 guide does not list AVX512-FP16 among Zen 5’s AVX-512 extensions, GCC 14 and Clang 23 leave it out of -march=znver5, and this site’s recorded cases include none of VMOVW.
Forms
| Instruction | Encoding | Requires |
|---|---|---|
VMOVW xmm, r32
VMOVW_XMMf16_GPR32f16_AVX512 | EVEX.128.66.MAP5.WIG 6E /r | AVX10.1 or AVX512_FP16 |
VMOVW xmm, m16
VMOVW_XMMf16_MEMf16_AVX512 | EVEX.128.66.MAP5.WIG 6E /r | AVX10.1 or AVX512_FP16 |
VMOVW r32, xmm
VMOVW_GPR32f16_XMMf16_AVX512 | EVEX.128.66.MAP5.WIG 7E /r | AVX10.1 or AVX512_FP16 |
VMOVW m16, xmm
VMOVW_MEMf16_XMMf16_AVX512 | EVEX.128.66.MAP5.WIG 7E /r | AVX10.1 or AVX512_FP16 |
VMOVW xmm, xmm
VMOVW_XMMu16_XMMu16_AVX512_MOVZXC | EVEX.128.F3.MAP5.W0 6E /rEVEX.128.F3.MAP5.W0 7E /r | AVX10.2 |
VMOVW xmm, m16
VMOVW_XMMu16_MEMu16_AVX512_MOVZXC | EVEX.128.F3.MAP5.W0 6E /r | AVX10.2 |
VMOVW m16, xmm
VMOVW_MEMu16_XMMu16_AVX512_MOVZXC | EVEX.128.F3.MAP5.W0 7E /r | AVX10.2 |
Latency and throughput
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.
VMOVW xmm, r32 VMOVW xmm, m16Result words 7 to 0: 0, 0, 0, 0, 0, 0, 0, a0.
VMOVW r32, xmm VMOVW m16, xmmr32 receives word 0 of xmm2: a0.
VMOVW xmm, xmmResult words 7 to 0: 0, 0, 0, 0, 0, 0, 0, a0.
Operation
What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.
VMOVW xmm, r32 VMOVW xmm, m16xmm1.write(src2.w[0]) # zeroed from bit 16 up
Not run on a processor: none of these processors has AVX512-FP16 or AVX10.2.
VMOVW r32, xmm VMOVW m16, xmmdest.write(xmm2.w[0]) # zero-extended in a register
Not run on a processor: none of these processors has AVX512-FP16 or AVX10.2.
VMOVW xmm, xmmxmm1.write(xmm2.w[0]) # zeroed from bit 16 up
Not run on a processor: none of these processors has AVX10.2.
Operands
| Operand | Kind | Action |
|---|---|---|
VMOVW xmm, r32 | ||
xmm | explicit | write |
r32 | explicit | read |
VMOVW xmm, xmm/m16 | ||
xmm | explicit | write |
xmm/m16 | explicit | read |
VMOVW r32, xmm | ||
r32 | explicit | write |
xmm | explicit | read |
VMOVW m16, xmm | ||
m16 | explicit | write |
xmm | 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-E9NF
Intrinsics
The C intrinsics of Clang 23.1.2 that compile to VMOVW, 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_cvtsi128_si16
short _mm_cvtsi128_si16(__m128i __a) |
|
_mm_cvtsi16_si128
__m128i _mm_cvtsi16_si128(short __a) |
|
_mm_move_epi16
__m128i _mm_move_epi16(__m128i __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 |
|---|---|---|
AVX512_FP16_128N | AVX10.1 or AVX512_FP16 | Nova Lake, Sapphire Rapids, Emerald Rapids, Granite Rapids, Diamond Rapids, Zen 6 |
AVX512_MOVZXC_128 | AVX10.2 | Nova Lake, Diamond Rapids |
More AVX10.1 instructions
- VMOVDQU64
- VMOVDQU8
- VMOVHLPS
- VMOVHPD
- VMOVHPS
- VMOVLHPS
- VMOVLPD
- VMOVLPS
- VMOVNTDQ
- VMOVNTDQA
- VMOVNTPD
- VMOVNTPS
- VMOVQ
- VMOVSD
- VMOVSH
- VMOVSHDUP
- VMOVSLDUP
- VMOVSS
- VMOVUPD
- VMOVUPS
- VMULPD
- VMULPH
- VMULPS
- VMULSD
- VMULSH
- VMULSS
- VORPD
- VORPS
- VPABSB
- VPABSD
- VPABSQ
- VPABSW
- VPACKSSDW
- VPACKSSWB
- VPACKUSDW
- VPACKUSWB
- VPADDB
- VPADDD
- VPADDQ
- VPADDSB
More AVX10.2 instructions
- VFMSUB231BF16
- VFNMADD132BF16
- VFNMADD213BF16
- VFNMADD231BF16
- VFNMSUB132BF16
- VFNMSUB213BF16
- VFNMSUB231BF16
- VFPCLASSBF16
- VGETEXPBF16
- VGETMANTBF16
- VMAXBF16
- VMINBF16
- VMINMAXBF16
- VMINMAXPD
- VMINMAXPH
- VMINMAXPS
- VMINMAXSD
- VMINMAXSH
- VMINMAXSS
- VMOVD
- VMPSADBW
- VMULBF16
- VPDPBSSD
- VPDPBSSDS
- VPDPBSUD
- VPDPBSUDS
- VPDPBUUD
- VPDPBUUDS
- VPDPWSUD
- VPDPWSUDS
- VPDPWUSD
- VPDPWUSDS
- VPDPWUUD
- VPDPWUUDS
- VRCPBF16
- VREDUCEBF16
- VRNDSCALEBF16
- VRSQRTBF16
- VSCALEFBF16
- VSQRTBF16
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 2C, page 5-429 (VMOVW)
- 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 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.