Instruction
VMOVD
Moves 32 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.
VMOVD is the VEX and EVEX form of MOVD, whose page covers the 32-bit copies compilers make with it. Into an XMM register the newer encodings zero every bit above 31, where the legacy form keeps bits 128 and up. Only a 128-bit form exists: VEX.L = 1 or a VEX.vvvv other than 1111b raises #UD in both vendors’ manuals, and so does an EVEX.vvvv other than 1111b (AMD’s in its table of illegal EVEX encodings, Section 3.2.4). The VEX form needs AVX, the EVEX form AVX-512F or AVX10.1, which reaches XMM16 to XMM31 but takes no mask. With W1 the same opcodes are VMOVQ.
On Zen 5, the recorded vmovd xmm12, dword ptr [mem] cleared bits
511:32 of ZMM12, and {evex} vmovd dword ptr [mem], xmm5 wrote four
bytes and left the next ones alone.
A copy between vector registers
AVX10.2 adds the form the older encodings lack, VMOVD from XMM to XMM, which keeps the low doubleword and zeroes the rest. It reuses VMOVQ’s register-copy opcodes, F3 0F 7E and 66 0F D6, with EVEX.W0 where VMOVQ has W1. Zen 5 has no AVX10.2, so these forms were not run.
In compiled code
In our builds at -O2 with -march=x86-64-v3 or x86-64-v4, GCC 14
and Clang 23 emit VMOVD where MOVD’s page shows MOVD. The zeroing makes
a zero-extended vector free: for
_mm256_zextsi128_si256(_mm_cvtsi32_si128(x)) Clang emits only
vmovd xmm0, edi, while GCC adds a vmovdqa xmm0, xmm0 that changes
nothing. Keeping only element 0 of four ints,
v & (v4si){-1, 0, 0, 0}, takes Clang a VXORPS and a VBLENDPS at
-v4, and with -mavx10.2 added the single vmovd xmm0, xmm0.
AMD’s latency spreadsheet for Zen 5 lists VMOVD from a general-purpose register as one macro-op in its VEX and EVEX rows, where legacy MOVD takes two. Only the EVEX rows give latencies: 1 cycle for a move out of the XMM register, on FP4 or FP5, and 0 for a move into it.
Forms
| Instruction | Encoding | Requires |
|---|---|---|
VMOVD xmm, m32
VMOVD_XMMdq_MEMd | VEX.128.66.0F.W0 6E /r | AVX |
VMOVD m32, xmm
VMOVD_MEMd_XMMd | VEX.128.66.0F.W0 7E /r | AVX |
VMOVD xmm, r32
VMOVD_XMMdq_GPR32d | VEX.128.66.0F.W0 6E /r | AVX |
VMOVD r32, xmm
VMOVD_GPR32d_XMMd | VEX.128.66.0F.W0 7E /r | AVX |
VMOVD xmm, r32
VMOVD_XMMu32_GPR32u32_AVX512 | EVEX.128.66.0F.W0 6E /r | AVX10.1 or AVX512F |
VMOVD xmm, m32
VMOVD_XMMu32_MEMu32_AVX512 | EVEX.128.66.0F.W0 6E /r | AVX10.1 or AVX512F |
VMOVD r32, xmm
VMOVD_GPR32u32_XMMu32_AVX512 | EVEX.128.66.0F.W0 7E /r | AVX10.1 or AVX512F |
VMOVD m32, xmm
VMOVD_MEMu32_XMMu32_AVX512 | EVEX.128.66.0F.W0 7E /r | AVX10.1 or AVX512F |
VMOVD xmm, xmm
VMOVD_XMMu32_XMMu32_AVX512_MOVZXC | EVEX.128.F3.0F.W0 7E /rEVEX.128.66.0F.W0 D6 /r | AVX10.2 |
VMOVD xmm, m32
VMOVD_XMMu32_MEMu32_AVX512_MOVZXC | EVEX.128.F3.0F.W0 7E /r | AVX10.2 |
VMOVD m32, xmm
VMOVD_MEMu32_XMMu32_AVX512_MOVZXC | EVEX.128.66.0F.W0 D6 /r | AVX10.2 |
Latency and throughput
| Model | xmm, m32 | m32, xmm | xmm, r32 | r32, xmm | xmm, m32 |
|---|---|---|---|---|---|
| Sandy Bridge | 6 / 0.5p23 | 1 / 1p4 p23 | 1 / 1p5 | 2 / 1p0 | |
| Haswell, Broadwell | 5 / 0.5p23 | 1 / 1p2347 | 1 / 1p5 | 1 / 1p0 | |
| Skylake | 5 / 0.5p23 | 1 / 1p2347 | 1 / 1p5 | 2 / 1p0 | |
| Skylake-SP | 5 / 0.5p23 | 1 / 1p2347 | 1 / 1p5 | 2 / 1p0 | 6 / 0.5p015 |
| Ice Lake | 5 / 0.5p23 | 1 / 0.5p4789 | 1 / 1p5 | 2 / 1p0 | 6 / 0.5p015 |
| Alder Lake | 7 / 0.33p2 p3 p10 | 12 / 0.5p4789 | 3 / 1p5 | 3 / 1p0 | |
| Sapphire Rapids | 7 / 0.33p2 p3 p10 | 12 / 0.5p4789 | 3 / 1p5 | 3 / 1p0 | 7 / 0.33p2 p3 p10 |
| Lunar Lake | 6 / 0.33p20 p21 p22 | 12 / 0.5p10 p11 p25 p26 p27 | 3 / 0.33p135 | 3 / 0.5V0 V1 | |
| Piledriver | 5 / 1.5FPMAL FPU0 FPU1 | 2 / 1.5AGLU01 FPSTO FPU2 FPU3 Store | 11 / 1FPFMA FPU0 FPU1 | 11 / 1EX0 FPFMA FPU0 | |
| Zen | 8 / 0.5AGU0 AGU1 | 1 / 0.5AGU0 AGU1 | 3 / 1FPU2 | 2 / 1FPU2 | |
| Zen 2 | 8 / 0.33AGU0 AGU1 AGU2 | 1 / 0.33AGU0 AGU1 AGU2 | 3 / 1FPU2 | 2 / 1FPU2 | |
| Zen 3 | 8 / 0.5FP45 LSU Load | 1 / 1FP45 FPSt LSU Store | 1 / 1FP45 | 1 / 1FP45 | |
| Zen 4 | 8 / 0.5FP45 LSU Load | 1 / 1FP45 FPSt LSU Store | 1 / 1FP45 | 1 / 1FP45 | 8 / 0.5FP45 LSU Load |
| Jaguar | 5 / 1FPU0 FPU1 VALU0 VALU1 | 2 / 1FPU1 | 8 / 0.5FPA FPM FPU0 FPU1 | 4 / 1ALU0 FPA FPU0 |
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.
VMOVD xmm, r/m32Result doublewords 3 to 0: 0, 0, 0, a0.
VMOVD r/m32, xmmm32 receives doubleword 0 of xmm2: a0.
VMOVD xmm, xmmResult doublewords 3 to 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.
VMOVD xmm, r/m32xmm1.write(src2.d[0]) # zeroed from bit 32 up
Run on AMD Zen 5 (EPYC 9645): 4 cases. The AVX10.2 forms were not run: none of these processors has AVX10.2.
VMOVD r/m32, xmmdest.write(xmm2.d[0]) # a register: bits 63:32 cleared
Run on AMD Zen 5 (EPYC 9645): 4 cases. The AVX10.2 forms were not run: none of these processors has AVX10.2.
VMOVD xmm, xmmxmm1.write(xmm2.d[0]) # zeroed from bit 32 up
Not run on a processor: none of these processors has AVX10.2.
Operands
| Operand | Kind | Action |
|---|---|---|
VMOVD xmm, r/m32 VMOVD xmm, xmm/m32 | ||
xmm | explicit | write |
r/m32, xmm/m32 | explicit | read |
VMOVD r/m32, xmm | ||
r/m32 | 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.
- VEX forms
avx-type-5- EVEX forms
AVX512-E9NF
Intrinsics
The C intrinsics of Clang 23.1.2 that compile to VMOVD, 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_si32
int _mm_cvtsi128_si32(__m128i __a) |
|
_mm_cvtsi32_si128
__m128i _mm_cvtsi32_si128(int __a) |
|
_mm_loadu_si32
__m128i _mm_loadu_si32(const void *__a) |
|
_mm_move_epi32
__m128i _mm_move_epi32(__m128i __A) |
|
_mm_storeu_si32
void _mm_storeu_si32(void *__p, __m128i __b) |
|
_mm512_cvtsi512_si32
int _mm512_cvtsi512_si32(__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 |
|---|---|---|
AVX | AVX | Sandy Bridge, Ivy Bridge, Haswell, Broadwell, Skylake, Comet Lake, Cannon Lake, Ice Lake (client), Tiger Lake, Alder Lake, Arrow Lake, Panther Lake, Nova Lake, Skylake-SP, Cascade Lake, Cooper Lake, Ice Lake (server), Sapphire Rapids, Emerald Rapids, Granite Rapids, Diamond Rapids, Sierra Forest, Clearwater Forest, Knights Landing, Knights Mill, Bulldozer, Piledriver, Zen, Zen+, Zen 2, Zen 3, Zen 4, Zen 5, Zen 6 |
AVX512F_128N | 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 |
AVX512_MOVZXC_128 | AVX10.2 | Nova Lake, Diamond Rapids |
More AVX instructions
- VHADDPS
- VHSUBPD
- VHSUBPS
- VINSERTF128
- VINSERTPS
- VLDDQU
- VLDMXCSR
- VMASKMOVDQU
- VMASKMOVPD
- VMASKMOVPS
- VMAXPD
- VMAXPS
- VMAXSD
- VMAXSS
- VMINPD
- VMINPS
- VMINSD
- VMINSS
- VMOVAPD
- VMOVAPS
- VMOVDDUP
- VMOVDQA
- VMOVDQU
- VMOVHLPS
- VMOVHPD
- VMOVHPS
- VMOVLHPS
- VMOVLPD
- VMOVLPS
- VMOVMSKPD
- VMOVMSKPS
- VMOVNTDQ
- VMOVNTDQA
- VMOVNTPD
- VMOVNTPS
- VMOVQ
- VMOVSD
- VMOVSHDUP
- VMOVSLDUP
- VMOVSS
More AVX10.1 instructions
- VINSERTF64X4
- VINSERTI32X4
- VINSERTI32X8
- VINSERTI64X2
- VINSERTI64X4
- VINSERTPS
- VMAXPD
- VMAXPH
- VMAXPS
- VMAXSD
- VMAXSH
- VMAXSS
- VMINPD
- VMINPH
- VMINPS
- VMINSD
- VMINSH
- VMINSS
- VMOVAPD
- VMOVAPS
- VMOVDDUP
- VMOVDQA32
- VMOVDQA64
- VMOVDQU16
- VMOVDQU32
- VMOVDQU64
- VMOVDQU8
- VMOVHLPS
- VMOVHPD
- VMOVHPS
- VMOVLHPS
- VMOVLPD
- VMOVLPS
- VMOVNTDQ
- VMOVNTDQA
- VMOVNTPD
- VMOVNTPS
- VMOVQ
- VMOVSD
- VMOVSH
More AVX10.2 instructions
- VFMSUB213BF16
- VFMSUB231BF16
- VFNMADD132BF16
- VFNMADD213BF16
- VFNMADD231BF16
- VFNMSUB132BF16
- VFNMSUB213BF16
- VFNMSUB231BF16
- VFPCLASSBF16
- VGETEXPBF16
- VGETMANTBF16
- VMAXBF16
- VMINBF16
- VMINMAXBF16
- VMINMAXPD
- VMINMAXPH
- VMINMAXPS
- VMINMAXSD
- VMINMAXSH
- VMINMAXSS
- VMOVW
- VMPSADBW
- VMULBF16
- VPDPBSSD
- VPDPBSSDS
- VPDPBSUD
- VPDPBSUDS
- VPDPBUUD
- VPDPBUUDS
- VPDPWSUD
- VPDPWSUDS
- VPDPWUSD
- VPDPWUSDS
- VPDPWUUD
- VPDPWUUDS
- VRCPBF16
- VREDUCEBF16
- VRNDSCALEBF16
- VRSQRTBF16
- VSCALEFBF16
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 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-093, September 2026): Volume 2B, page 4-54 (MOVD/
MOVQ) - Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 1 (253665-093, September 2026)
- Intel Advanced Vector Extensions 10.2 Architecture Specification, revision 7.0 (361050-007, April 2026)
- AMD64 Architecture Programmer's Manual, Volume 4: 128-Bit, 256-Bit, and 512-Bit Media Instructions (26568, rev. 3.27, July 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.