Instruction
PREFETCHIT0
Prefetches code at a RIP-relative address into all cache levels; a no-op without RIP-relative addressing or on older processors.
- Extensions
- Forms
- 1 (1 Legacy)
- Data
- Intel XED v2026.08.23
PREFETCHIT0 asks the processor to fetch the cache line of code that holds a byte into every level of the instruction-cache hierarchy, ahead of a jump or call to it. It is the code counterpart of PREFETCHT0: the same 0F 18 opcode with 7 in the ModRM reg field, a hint that changes no register, flag or memory, may be ignored and never faults. PREFETCHIT1, with 6 in the reg field, leaves the first-level cache out.
Only RIP-relative
Both work only in 64-bit mode and only with a RIP-relative address, the next instruction’s address plus a 32-bit displacement; any other address, or a processor without them, makes them no-ops, so code can use them without checking CPUID leaf 7 subleaf 1 EDX bit 14 first. Intel advises pointing them at the first byte of an instruction. They came with Granite Rapids, and AMD’s guide for Zen 5 lists both, with the same levels as Intel’s entry (Table 8).
In compiled code
At -O2 with -mprefetchi, Clang 23 compiles _m_prefetchit0(p) to
PREFETCHIT0 with a RIP-relative address for a function or array of the
same file, but also emits it through a register: for a pointer argument,
and for an external function in position-independent code, whose address
comes from the GOT. Those register forms are the no-ops just described.
GCC 14 emitted the instruction only for a function of the same file, and
for every other address dropped it with a warning that the prefetch
would stay a NOP. AMD’s Zen 5 latency spreadsheet lists PREFETCHIT0 and
PREFETCHIT1 as microcoded.
In the optimization guide
What the optimization guide says about PREFETCHIT0, a line per claim. Each links to the claim in the guide, with its sources and where they differ.
Redwood Cove
- Front end: Granite Rapids, not Meteor Lake, adds PREFETCHIT0 and PREFETCHIT1, which fetch code ahead of a jump to it: the first into every cache level, the second into all but the L1.
Forms
| Instruction | Encoding | Requires |
|---|---|---|
PREFETCHIT0 m8
PREFETCHIT0_MEMu8 | 0F 18 /7 | PREFETCHI |
Operation
What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.
pass # IT0: code, into every level of the
# caches
# only with a RIP-relative address, rip + disp32; otherwise, and on
# a processor without PREFETCHI, 0F 18 /7 is a hint NOPNot run on a processor: the Zen 5 guest that ran the probe does not report PREFETCHI in CPUID.
Operands
| Operand | Kind | Action |
|---|---|---|
PREFETCHIT0 m8 | ||
m8 | explicit | read |
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
Intrinsics
The C intrinsics of Clang 23.1.2 that compile to PREFETCHIT0, 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 |
|---|---|
_m_prefetchit0
void _m_prefetchit0(const volatile void *__P) |
|
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 |
|---|---|---|
ICACHE_PREFETCH | PREFETCHI | Granite Rapids, Diamond Rapids, Clearwater Forest, Zen 5, Zen 6 Note: XED's Nova Lake lacks PREFETCHIT0 and PREFETCHIT1, which GCC's -march=novalake enables and Intel's extensions reference lists for Nova Lake. Note: Zen 5 and Zen 6 report PREFETCHIT0 and PREFETCHIT1 in CPUID_Fn80000021_EAX[PREFETCHI] (bit 20), a bit of AMD's own, and leave Intel's bit, CPUID.(EAX=07H,ECX=1):EDX[14], clear. |
More PREFETCHI 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. - Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-093, September 2026): Volume 2B, page 4-414 (PREFETCHh)
- Intel 64 and IA-32 Architectures Optimization Reference Manual, Volume 1 (248966-051, October 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, part of the LLVM Project, licensed under the Apache License 2.0 with LLVM Exceptions. The text is our own.