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

PREFETCHT2 asks the processor to bring the cache line holding a byte into the cache, but only as close as the level 3 cache, or wherever the processor chooses: Intel’s entry gives T2 both. It is the T2 hint of the instruction that PREFETCHT0 describes, 0F 18 with 3 in the ModRM reg field, a hint that changes no register, flag or memory and never faults. On Zen 5 it ran without an exception for the probe’s buffer, for an unmapped address near 0 and for a kernel address. PREFETCHT1 covers the T1 hint, and the encoding table in Appendix B of Intel’s Volume 2 shifts T2 by a level in the same way, calling it a prefetch to the second level cache.

Two vendors, two meanings

Intel’s optimization manual tables the hints per processor family (Tables 9-1 to 9-3): T2 fills the level 2 cache and not level 1 on the Core Duo, the Core 2, the Atoms and Skylake, and levels 2 and 3 on the Xeon Scalable processors, and a note says that T1 and T2 are implemented alike on every Intel microarchitecture. AMD’s guide for Zen 5 gives T2 a level of its own: the line goes into the L3 cache and nowhere closer, while T1 also fills the L2 (Table 8). So on Zen 5 the hint keeps a line out of the L1 and L2 caches, which no hint does in Intel’s tables.

From C

GCC 14 and Clang 23 at -O2 emit PREFETCHT2 for _mm_prefetch(p, _MM_HINT_T2) and for __builtin_prefetch(p, 0, 1), locality 1; with rw set to 1 they emit PREFETCHT2 as well, unless PREFETCHW is enabled. In a loop that prefetches a fixed distance ahead, Clang unrolls and keeps one PREFETCHT2 per element, as it does for T1; GCC keeps one per pass.

In the optimization guide

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

Memory

  • Software prefetch: A prefetch instruction asks for the 64-byte line holding its address and changes nothing a program can see.
  • Software prefetch: Each core decides which caches each prefetch hint fills, and Intel’s and AMD’s cores differ.
  • Software prefetch: Software prefetch pays where the hardware cannot see the pattern and the data is not in the cache already.

Zen 5

Forms

Every encoding of PREFETCHT2 that Intel XED knows, one row per XED instruction form (iform). How to read the notation.
InstructionEncodingRequires
PREFETCHT2 m8 PREFETCHT2_MEMmprefetch0F 18 /3Base instruction set

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 Rapids0 / 0.33p2 p3 p10
Lunar Lake0 / 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                             # T2: into the third level and up, or
                                 # as the processor chooses; AMD's
                                 # processors take it as T0
# no fault for any address

Run on AMD Zen 5 (EPYC 9645): 3 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
PREFETCHT2 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
SSE_PREFETCH

No CPUID bit: part of the base instruction set.

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

More SSE instructions

All 65 SSE 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. Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-093, September 2026): Volume 2B, page 4-414 (PREFETCHh)
  5. Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 1 (253665-093, September 2026)
  6. Intel 64 and IA-32 Architectures Optimization Reference Manual, Volume 1 (248966-051, October 2026)
  7. 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.