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

PREFETCHW brings the cache line holding a byte close to the core in a state that lets a store write it at once: other caches give up their copies, as they would for a write. Without it, the first store to a line that is not cached, or that another core holds, waits for that exchange, the read for ownership; Intel’s optimization manual suggests PREFETCHW shortly before such stores for that reason (Section 20.13.1.4). Like PREFETCHT0, it is a hint that changes no register, flag or memory and never faults: Zen 5 ran it without an exception at an unmapped address near 0 and at a kernel address.

A hint with one visible trace

AMD’s manual allows PREFETCHW on a writable page to set the dirty bit of its page table entry, as a store would; a load, or CLFLUSH, sets only the accessed bit. Intel’s manual orders PREFETCHW with nothing but serializing instructions such as CPUID: fences, locked instructions and flushes may pass it. It also drops prefetches from memory that is not write-back.

From C

GCC 14 and Clang 23 emit PREFETCHW for __builtin_prefetch(p, 1) and for _m_prefetchw(p) only when the target has it: with -mprfchw, or -march=broadwell, skylake, znver1 and later. With -march=haswell or x86-64-v4, both become PREFETCHT0.

Where the opcode comes from

0F 0D is AMD’s, from 3DNow!: the ModRM reg field picks PREFETCH (/0) or PREFETCHW (/1), /2 is PREFETCHWT1 on Intel’s Xeon Phi, and AMD’s manual makes the other values act as PREFETCH. XED decodes /3 as PREFETCHW; for a hint the two cannot be told apart. The CPUID bit is leaf 80000001H, ECX bit 8, which Intel calls PREFETCHW and AMD 3DNowPrefetch; AMD’s manual counts long mode as enough on its own processors, and Intel’s optimization manual names Broadwell as Intel’s first core with the instruction (Table 9-3).

What it fills

AMD’s Zen 5 guide puts the line into the L1 data cache, trying for an exclusive state (Table 8), and lists PREFETCHW as one macro-op. By Intel’s optimization manual it fills L1 and L2 on Skylake, and L3 and the snoop filter as well on Xeon Scalable processors (Tables 9-2 and 9-3).

In the optimization guide

What the optimization guide says about PREFETCHW, a line per claim. Each links to the claim in the guide, with its sources and where they differ.

Bulldozer to Excavator

Haswell and Broadwell

  • What Broadwell changed: Broadwell adds ADCX and ADOX, RDSEED and PREFETCHW, which -march=broadwell enables in LLVM; code built that way can fault on Haswell, which has none of them.

Silvermont to Goldmont Plus

  • Loads, stores and caches: From Silvermont on, prefetchw fetches a line for writing, so that stores to it complete sooner.

Forms

Every encoding of PREFETCHW that Intel XED knows, one row per XED instruction form (iform). How to read the notation.
InstructionEncodingRequires
PREFETCHW m8 PREFETCHW_0F0Dr10F 0D /13DNowPrefetch
PREFETCHW m8 PREFETCHW_0F0Dr30F 0D /33DNowPrefetch

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.
Modelm8
Sandy Bridge, Haswell, Broadwell, Skylake, Skylake-SP, Ice Lake5 / 0.5p23
Alder Lake, Sapphire Rapids5 / 0.33p2 p3 p10
Lunar Lake4 / 0.33p20 p21 p22
Bonnell1 / 1p0
Silvermont3 / 1MEC
Piledriver5 / 1AGLU01 Load
Zen4 / 0.5AGU0 AGU1
Zen 24 / 0.33AGU0 AGU1 AGU2
Zen 3, Zen 45 / 0.33AGU0 AGU1 AGU2 LSU Load
Jaguar3 / 1LAGU

Operation

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

pass                             # into the first-level data cache,
                                 # ready to be written: the line is
                                 # taken as for a write, and the page's
                                 # dirty bit may be set (AMD's manual)
# no fault for any address. 0F 0D /3 is PREFETCHW too

Run on AMD Zen 5 (EPYC 9645): 6 cases.

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
PREFETCHW m8
m8explicitread

Flags

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

Attributes

What else XED records about the forms. How to read.

All forms
memory operand only names cache lines

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
PREFETCH_NOP

3DNowPrefetch
CPUID.80000001H:ECX[8] 3DNowPrefetch

Every x86-64 processor in XED’s model and Zen 3 to Zen 6

More PREFETCHW 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. LLVM 23.1.2's x86 scheduling models (commit 85ac56026243): the latency, reciprocal throughput and ports of each form, as llvm-mca reports them.
  4. AMD64 Architecture Programmer's Manual, Volume 3: General-Purpose and System Instructions (24594, rev. 3.39, October 2026)
  5. Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-093, September 2026): Volume 2B, page 4-416 (PREFETCHW)
  6. Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 1 (253665-093, September 2026)
  7. Intel 64 and IA-32 Architectures Optimization Reference Manual, Volume 1 (248966-051, October 2026)
  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 timings come from LLVM's scheduling models, part of the LLVM Project, licensed under the Apache License 2.0 with LLVM Exceptions. The text is our own.