Extensions
Forms
1 (1 Legacy)
Data
Intel XED v2026.08.23

MONITORX is AMD’s MONITOR for programs: it arms the address monitor that MWAITX then waits on, at any privilege level. The bit in the MSR C001_0015H that lets user code run MONITOR and MWAIT (MonMwaitUserEn) has no effect on either X form. RAX holds the address to watch, relative to DS unless a prefix says otherwise, and the range around it has the size that CPUID leaf 05H gives. ECX takes extensions, of which none is defined, so any bit set raises #GP(0); EDX takes hints, none defined, and is ignored. No flag changes.

Using the pair

The monitor sees stores to the range made by other processors, and only for write-back memory; for other memory types MONITORX may not arm it. MONITORX checks the address like a 1-byte read, with its segment and page faults. The pattern AMD gives is a loop: arm the monitor, test the flag in memory once more, and wait only if it is still unset, so that a store between the test and MONITORX cannot be missed. MWAITX’s page gives the wait’s timer and C-state hint.

In Linux

Linux 7.3 uses the pair for delays on AMD and Hygon processors that have it (arch/x86/lib/delay.c): MONITORX on a per-CPU line that is seldom written, then MWAITX with its timer set to the remaining number of TSC cycles and no deeper C-state, in a loop that reads the TSC until the delay has passed. arch/x86/include/asm/mwait.h compares the X forms with MONITOR and MWAIT.

Not run here

The probe left MONITORX unrun: the Zen 5 guest it ran in does not report CPUID Fn8000_0001H, ECX bit 29, and Linux 7.3’s KVM does not list that bit among the ones it offers a guest (arch/x86/kvm/cpuid.c). AMD’s Zen 5 guide lists MONITORX as microcoded. GCC 14 and Clang 23 provide _mm_monitorx(p, extensions, hints) with -mmwaitx; Clang’s takes void *, not const void *, and warns when given a pointer to const. GNU as 2.44 assembles monitorx and monitorx %rax, %ecx, %edx as 0F 01 FA, and Clang 23 the first.

Forms

Every encoding of MONITORX that Intel XED knows, one row per XED instruction form (iform). How to read the notation.
InstructionEncodingRequires
MONITORX MONITORXNP 0F 01 FA
67 0F 01 FA
MONITORX

Latency and throughput

What the scheduling models of LLVM 23.1.2 give for each form, not measurements: latency / reciprocal throughput in cycles, the ports under them. A row is a model, or models that agree; a dash, a form that its processors lack. Memory forms: latency from the address, ports without the load and store units. Which processors each model covers.
ModelMONITORX
Zen, Zen 2100 / 0.25
Zen 3, Zen 4100 / 25ALU0 ALU1 ALU2 ALU3

Operation

What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.

if ecx != 0:
    fault(GP, 0)                 # no extension is defined
a = low(rax, ASIZE)              # DS:rAX, EAX with a 67 prefix
if not canonical(a):
    fault(GP, 0)
if not readable(a):
    fault(PF)                    # the checks of a 1-byte read
# arms the monitor on the range that holds a, for MWAITX, at any
# privilege level; EDX holds hints, which no processor defines

Not run on a processor: the Zen 5 guest that ran the probe does not report MONITORX in CPUID.

Operands

What each form reads and writes, as Intel XED records it: the operands of its syntax, in order, and the implicit ones that the syntax does not name. How to read.
OperandKindAction
MONITORX
rAXimplicitread
ECXimplicitread
EDXimplicitread

Flags

None: XED records no flag that the forms test or change.

Intrinsics

The C intrinsics of Clang 23.1.2 that compile to MONITORX, 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.

IntrinsicCompiles to
_mm_monitorx void _mm_monitorx(void *__p, unsigned int __extensions, unsigned int __hints)

MONITORX Legacy -mmwaitx

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.

CPUID requirements and processors of the XED ISA sets above. Alternatives are separated by “or”; processors follow XED’s chip model, whose AMD processors end with Zen 2, and the CPU data of this site for Zen 3 to Zen 6.
ISA setCPUIDProcessors
MONITORX

MONITORX
CPUID.80000001H:ECX[29] MONITORX

Zen 2, Zen 3, Zen 4, Zen 5, Zen 6

Note: XED gives MONITORX and MWAITX to its Zen 2 chip alone; GCC's -march=bdver4 (Excavator) and -march=znver1 and later enable them.

More MONITORX instructions

Sources

  1. Intel XED v2026.08.23 (commit 0bcb6237345c): forms, encodings, operands, flags, exception classes, attributes, ISA sets, CPUID bits and chip model.
  2. The CPU data of x86-64.net: Zen 3 to Zen 6, from GCC’s -march feature sets and AMD’s Processor Programming References, which the page of each processor cites.
  3. 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.
  4. LLVM 23.1.2's x86 scheduling models (commit 85ac56026243): the latency, reciprocal throughput and ports of each form, as llvm-mca reports them.
  5. AMD64 Architecture Programmer's Manual, Volume 3: General-Purpose and System Instructions (24594, rev. 3.39, October 2026)
  6. Linux 7.3: arch/x86/include/asm/mwait.h and arch/x86/lib/delay.c (delays with MONITORX and MWAITX)
  7. Linux 7.3: arch/x86/kvm/emulate.c, x86.c and cpuid.c (the instructions KVM emulates after a #UD, and the CPUID bits it offers a guest)
  8. 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.