Instruction
MOV
Copies data between registers, memory and immediates, and moves segment, control and debug registers; those last two only in ring 0.
- Extensions
- Forms
- 30 (30 Legacy)
- Data
- Intel XED v2026.08.23
Forms
| Instruction | Encoding | Requires |
|---|---|---|
MOV r8, imm8
MOV_GPR8_IMMb_C6r0 | C6 /0 ib | Base instruction set |
MOV m8, imm8
MOV_MEMb_IMMb | C6 /0 ib | Base instruction set |
MOV r16/32/64, imm16/32
MOV_GPRv_IMMz | C7 /0 iw/id | Base instruction set |
MOV m16/32/64, imm16/32
MOV_MEMv_IMMz | C7 /0 iw/id | Base instruction set |
MOV r8, r8
MOV_GPR8_GPR8_88 | 88 /r | Base instruction set |
MOV m8, r8
MOV_MEMb_GPR8 | 88 /r | Base instruction set |
MOV m16/32/64, r16/32/64
MOV_MEMv_GPRv | 89 /r | Base instruction set |
MOV r16/32/64, r16/32/64
MOV_GPRv_GPRv_89 | 89 /r | Base instruction set |
MOV r8, m8
MOV_GPR8_MEMb | 8A /r | Base instruction set |
MOV r8, r8
MOV_GPR8_GPR8_8A | 8A /r | Base instruction set |
MOV r16/32/64, m16/32/64
MOV_GPRv_MEMv | 8B /r | Base instruction set |
MOV r16/32/64, r16/32/64
MOV_GPRv_GPRv_8B | 8B /r | Base instruction set |
MOV m16, sreg
MOV_MEMw_SEG | 8C /r | Base instruction set |
MOV r16/32/64, sreg
MOV_GPRv_SEG | 8C /r | Base instruction set |
MOV sreg, m16
MOV_SEG_MEMw | 8E /r | Base instruction set |
MOV sreg, r16
MOV_SEG_GPR16 | 8E /r | Base instruction set |
MOV AL, m8
MOV_AL_MEMb | A0 moffs | Base instruction set |
MOV rAX, m16/32/64
MOV_OrAX_MEMv | A1 moffs | Base instruction set |
MOV m8, AL
MOV_MEMb_AL | A2 moffs | Base instruction set |
MOV m16/32/64, rAX
MOV_MEMv_OrAX | A3 moffs | Base instruction set |
MOV r8, imm8
MOV_GPR8_IMMb_B0 | B0+r ib | Base instruction set |
MOV r16/32/64, imm16/32/64
MOV_GPRv_IMMv | B8+r iw/id/io | Base instruction set |
MOV cr, r32 not in 64-bit mode
MOV_CR_CR_GPR32 | 0F 22 /r | Base instruction set |
MOV cr, r64 64-bit mode only
MOV_CR_CR_GPR64 | 0F 22 /r | Base instruction set |
MOV r32, cr not in 64-bit mode
MOV_CR_GPR32_CR | 0F 20 /r | Base instruction set |
MOV r64, cr 64-bit mode only
MOV_CR_GPR64_CR | 0F 20 /r | Base instruction set |
MOV dr, r32 not in 64-bit mode
MOV_DR_DR_GPR32 | 0F 23 /r | Base instruction set |
MOV dr, r64 64-bit mode only
MOV_DR_DR_GPR64 | 0F 23 /r | Base instruction set |
MOV r32, dr not in 64-bit mode
MOV_DR_GPR32_DR | 0F 21 /r | Base instruction set |
MOV r64, dr 64-bit mode only
MOV_DR_GPR64_DR | 0F 21 /r | Base instruction set |
Intrinsics
The C intrinsics of Clang 23.1.2 that compile to MOV, 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 |
|---|---|
_load_mask32
__mmask32 _load_mask32(__mmask32 *__A) |
|
_load_mask64
__mmask64 _load_mask64(__mmask64 *__A) |
|
_store_mask16
void _store_mask16(__mmask16 *__A, __mmask16 __B) |
|
_store_mask32
void _store_mask32(__mmask32 *__A, __mmask32 __B) |
|
_store_mask64
void _store_mask64(__mmask64 *__A, __mmask64 __B) |
|
_store_mask8
void _store_mask8(__mmask8 *__A, __mmask8 __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 in XED |
|---|---|---|
I86 | No CPUID bit: part of the base instruction set. | Every x86-64 processor in XED’s model |
More General-purpose instructions
Sources
- Intel XED v2026.08.23 (commit
0bcb6237345c): forms, encodings, ISA sets, CPUID bits and chip model. - 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. - Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-092, June 2026)
- Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-093, September 2026)
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, part of the LLVM Project, licensed under the Apache License 2.0 with LLVM Exceptions. The text is our own.