Instruction
VMOVQ
Moves a quadword between an XMM register and a general-purpose register, memory or another XMM register, zeroing the rest of a vector destination.
VMOVQ is the VEX and EVEX form of MOVQ, whose page explains its three kinds of opcode and the compilers’ choices among them. All carry over: 66 0F 6E and 7E with W1 to and from a general-purpose register or memory, F3 0F 7E into an XMM register and 66 0F D6 out of one. Into a register, the newer encodings zero every bit above 63. Only 128-bit forms exist, and VEX.L = 1 raises #UD. The VEX form needs AVX; the EVEX form, AVX-512F or AVX10.1, adds XMM16 to XMM31 and no mask.
The W bit
VEX ignores W in the F3 0F 7E and 66 0F D6 forms, but EVEX asks for W1
there: with W0, AVX10.2 makes them VMOVD between XMM
registers. In the 6E and 7E forms W picks the size, and Intel’s table
notes that outside 64-bit mode W1 is ignored, so 32-bit code moving 64
bits uses the F3 0F 7E and 66 0F D6 forms. In our builds, GNU as
2.44 encodes vmovq xmm0, qword ptr [rdi] as F3 0F 7E; the W1 6E and
7E memory forms, recorded on Zen 5 through .insn, moved the same
eight bytes.
Also on Zen 5, {store} vmovq xmm4, xmm4, the D6 form between
registers, kept the low quadword and cleared bits 511:64 of ZMM4, and
{store} {evex} vmovq rax, xmm17 copied XMM17’s low quadword,
2C1F1205F8EBDED1h, to RAX.
In compiled code
In our builds at -O2 with -march=x86-64-v3 or x86-64-v4, GCC 14 and
Clang 23 emit VMOVQ where MOVQ’s page shows MOVQ, vmovq xmm0, xmm0
for _mm_move_epi64 included. Clang relies on the zeroing: for
_mm256_zextsi128_si256(_mm_loadl_epi64(p)) it emits one VMOVSD,
while GCC loads with VMOVQ and adds a vmovdqa xmm0, xmm0. For
_mm256_set1_epi64x(x) both use VMOVQ and VPBROADCASTQ at -v3, and
at -v4 VPBROADCASTQ alone, which reads RDI itself.
AMD’s latency spreadsheet for Zen 5 gives VMOVQ from a general-purpose register one macro-op in its VEX and EVEX rows, against two for legacy MOVQ, and a copy between XMM registers one cycle, four per cycle, in its VEX row.
Forms
| Instruction | Encoding | Requires |
|---|---|---|
VMOVQ xmm, m64 64-bit mode only
VMOVQ_XMMdq_MEMq_6E | VEX.128.66.0F.W1 6E /r | AVX |
VMOVQ m64, xmm 64-bit mode only
VMOVQ_MEMq_XMMq_7E | VEX.128.66.0F.W1 7E /r | AVX |
VMOVQ xmm, m64
VMOVQ_XMMdq_MEMq_7E | VEX.128.F3.0F.WIG 7E /r | AVX |
VMOVQ m64, xmm
VMOVQ_MEMq_XMMq_D6 | VEX.128.66.0F.WIG D6 /r | AVX |
VMOVQ xmm, r64 64-bit mode only
VMOVQ_XMMdq_GPR64q | VEX.128.66.0F.W1 6E /r | AVX |
VMOVQ r64, xmm 64-bit mode only
VMOVQ_GPR64q_XMMq | VEX.128.66.0F.W1 7E /r | AVX |
VMOVQ xmm, xmm
VMOVQ_XMMdq_XMMq_7E | VEX.128.F3.0F.WIG 7E /r | AVX |
VMOVQ xmm, xmm
VMOVQ_XMMdq_XMMq_D6 | VEX.128.66.0F.WIG D6 /r | AVX |
VMOVQ xmm, r64 64-bit mode only
VMOVQ_XMMu64_GPR64u64_AVX512 | EVEX.128.66.0F.W1 6E /r | AVX10.1 or AVX512F |
VMOVQ xmm, m64
VMOVQ_XMMu64_MEMu64_AVX512 | EVEX.128.66.0F.W1 6E /rEVEX.128.F3.0F.W1 7E /r | AVX10.1 or AVX512F |
VMOVQ r64, xmm 64-bit mode only
VMOVQ_GPR64u64_XMMu64_AVX512 | EVEX.128.66.0F.W1 7E /r | AVX10.1 or AVX512F |
VMOVQ m64, xmm
VMOVQ_MEMu64_XMMu64_AVX512 | EVEX.128.66.0F.W1 7E /rEVEX.128.66.0F.W1 D6 /r | AVX10.1 or AVX512F |
VMOVQ xmm, xmm
VMOVQ_XMMu64_XMMu64_AVX512 | EVEX.128.F3.0F.W1 7E /rEVEX.128.66.0F.W1 D6 /r | AVX10.1 or AVX512F |
Latency and throughput
| Model | xmm, m64 | m64, xmm | xmm, r64 | r64, xmm | xmm, xmm | xmm, m64 |
|---|---|---|---|---|---|---|
| Sandy Bridge | 6 / 0.5p23 | 1 / 1p4 p23 | 1 / 1p5 | 2 / 1p0 | 1 / 0.33p015 | |
| Haswell, Broadwell | 5 / 0.5p23 | 1 / 1p2347 | 1 / 1p5 | 1 / 1p0 | 1 / 0.33p015 | |
| Skylake | 5 / 0.5p23 | 1 / 1p2347 | 1 / 1p5 | 2 / 1p0 | 1 / 0.33p015 | |
| Skylake-SP | 5 / 0.5p23 | 1 / 1p2347 | 1 / 1p5 | 2 / 1p0 | 1 / 0.33p015 | 6 / 0.5p015 |
| Ice Lake | 5 / 0.5p23 | 1 / 0.5p4789 | 1 / 1p5 | 2 / 1p0 | 1 / 0.33p015 | 6 / 0.5p015 |
| Alder Lake | 7 / 0.33p2 p3 p10 | 12 / 0.5p4789 | 3 / 1p5 | 3 / 1p0 | 1 / 0.33p015 | |
| Sapphire Rapids | 7 / 0.33p2 p3 p10 | 12 / 0.5p4789 | 3 / 1p5 | 3 / 1p0 | 1 / 0.33p015 | 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 | 1 / 0.25V0 V1 V2 V3 | |
| Piledriver | 5 / 1.5FPMAL FPU0 FPU1 | 2 / 1.5AGLU01 FPSTO FPU2 FPU3 Store | 11 / 1FPFMA FPU0 FPU1 | 11 / 1EX0 FPFMA FPU0 | 2 / 0.5FPMAL FPU2 FPU3 | |
| Zen | 8 / 0.5AGU0 AGU1 | 1 / 0.5AGU0 AGU1 | 3 / 1FPU2 | 2 / 1FPU2 | 1 / 0.25FPU0 FPU1 FPU2 FPU3 | |
| Zen 2 | 8 / 0.33AGU0 AGU1 AGU2 | 1 / 0.33AGU0 AGU1 AGU2 | 3 / 1FPU2 | 2 / 1FPU2 | 1 / 0.25FPU0 FPU1 FPU2 FPU3 | |
| Zen 3 | 8 / 0.5FP45 LSU Load | 1 / 1FP45 FPSt LSU Store | 1 / 1FP45 | 1 / 1FP45 | 1 / 0.25FP0 FP1 FP2 FP3 | |
| Zen 4 | 8 / 0.5FP45 LSU Load | 1 / 1FP45 FPSt LSU Store | 1 / 1FP45 | 1 / 1FP45 | 1 / 0.25FP0 FP1 FP2 FP3 | 8 / 0.5FP45 LSU Load |
| Jaguar | 5 / 1FPU0 FPU1 VALU0 VALU1 | 2 / 1FPU1 | 8 / 0.5FPA FPM FPU0 FPU1 | 4 / 1ALU0 FPA FPU0 | 1 / 0.5FPU0 FPU1 VALU0 VALU1 |
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.
VMOVQ xmm, r/m64 64-bit mode onlyResult quadwords 1 to 0: 0, a0.
VMOVQ r/m64, xmm 64-bit mode onlym64 receives quadword 0 of xmm2: a0.
VMOVQ xmm, xmmResult quadwords 1 to 0: 0, a0.
Operation
What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.
VMOVQ xmm, r/m64 64-bit mode onlyxmm1.write(src2.q[0]) # zeroed from bit 64 up
Run on AMD Zen 5 (EPYC 9645): 5 cases.
VMOVQ r/m64, xmm 64-bit mode onlydest.write(xmm2.q[0])Run on AMD Zen 5 (EPYC 9645): 5 cases.
VMOVQ xmm, xmmxmm1.write(xmm2.q[0]) # zeroed from bit 64 up
Run on AMD Zen 5 (EPYC 9645): 3 cases.
Operands
| Operand | Kind | Action |
|---|---|---|
VMOVQ xmm, r/m64 64-bit mode only VMOVQ xmm, xmm/m64 | ||
xmm | explicit | write |
r/m64, xmm/m64 | explicit | read |
VMOVQ r/m64, xmm 64-bit mode only VMOVQ xmm/m64, xmm | ||
r/m64, xmm/m64 | 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 VMOVQ, 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_si64
long long _mm_cvtsi128_si64(__m128i __a) |
|
_mm_cvtsi64_si128
__m128i _mm_cvtsi64_si128(long long __a) |
|
_mm_loadl_epi64
__m128i _mm_loadl_epi64(const __m128i_u *__p) |
|
_mm_loadu_si64
__m128i _mm_loadu_si64(const void *__a) |
|
_mm_move_epi64
__m128i _mm_move_epi64(__m128i __a) |
|
_mm_set_sd
__m128d _mm_set_sd(double __w) |
|
_mm_storeu_si64
void _mm_storeu_si64(void *__p, __m128i __b) |
|
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 |
More AVX instructions
- VMINSD
- VMINSS
- VMOVAPD
- VMOVAPS
- VMOVD
- VMOVDDUP
- VMOVDQA
- VMOVDQU
- VMOVHLPS
- VMOVHPD
- VMOVHPS
- VMOVLHPS
- VMOVLPD
- VMOVLPS
- VMOVMSKPD
- VMOVMSKPS
- VMOVNTDQ
- VMOVNTDQA
- VMOVNTPD
- VMOVNTPS
- VMOVSD
- VMOVSHDUP
- VMOVSLDUP
- VMOVSS
- VMOVUPD
- VMOVUPS
- VMPSADBW
- VMULPD
- VMULPS
- VMULSD
- VMULSS
- VORPD
- VORPS
- VPABSB
- VPABSD
- VPABSW
- VPACKSSDW
- VPACKSSWB
- VPACKUSDW
- VPACKUSWB
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 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-093, September 2026): Volume 2B, page 4-54 (MOVD/
MOVQ) ; Volume 2B, page 4-99 (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.