prefetchwt1
Prefetch Hint T1 with Intent to Write
Prefetches data to L2 (T1 hint) with intent to write.
Details
Prefetches a cache line from memory with intent to write into the L2 cache (T1 hint). Optimizes for temporal locality by loading data into the mid-level cache hierarchy rather than L1, reducing contention when multiple cores are writing to different addresses. This instruction is a hint and has no architectural effect on registers, flags, or memory contents.
Pseudocode Operation
// Prefetch memory address to L2 (T1 hint) with write intent
CachePrefetchToL2ForWrite([mem_address]);
Example
Encoding
Operands
-
dest
8-bit memory operand
Reference (Intel® SDM)
Instruction Forms
| Opcode | Instruction | Op/En | 64/32-bit Mode | CPUID | Description |
|---|---|---|---|---|---|
| 0F 0D /2 | PREFETCHWT1 | M | V/V | Move data from m8 closer to the processor using T1 hint PREFETCHWT1 m8 with intent to write. |
Description
Operation
PREFETCH(mem, Level, State) Prefetches a byte memory location pointed by ‘mem’ into the cache level specified by ‘Level’; a request for exclusive/ownership is done if ‘State’ is 1. Note that the memory location ignore cache line splits. This operation is considered a hint for the processor and may be skipped depending on implementation. Prefetch (m8, Level = 1, EXCLUSIVE=1);
Flags Affected
All flags are affected. C/C++ Compiler Intrinsic Equivalent void _mm_prefetch( char const *, int hint= _MM_HINT_ET1); PREFETCHWT1—Prefetch Vector Data Into Caches With Intent to Write and T1 Hint Vol. 2D 8-2