Memory, caches and atomics
CLWB
CLWB writes a modified cache line back to memory without necessarily evicting it, which makes stores to persistent memory durable at less cost than a flush.
- CPUID
- CLWB
CPUID.(EAX=07H,ECX=0):EBX[24] - Instructions
- 1 mnemonic
- Processors
- Tiger Lake, Alder Lake, Arrow Lake, Panther Lake, Nova Lake, Skylake-SP, Cascade Lake, Cooper Lake, Ice Lake (server), Sapphire Rapids, Emerald Rapids, Granite Rapids, Diamond Rapids, Tremont, Snow Ridge, Sierra Forest, Clearwater Forest, Zen 2
CLWB writes a modified cache line back to memory but, unlike the flushes, may keep it in the cache in an unmodified state, so the next access can still hit. That suits persistent memory, where software writes data back to make it durable and often reads it again soon. Like CLFLUSHOPT, it is not ordered with other flushes and write-backs, and an SFENCE orders it.
Instructions
| Mnemonic | Summary | Forms |
|---|---|---|
| CLWB | Writes the cache line holding a byte of memory back if it was modified and may keep it cached, for example to make stores to persistent memory durable. | 1 |
CPUID and processors
XED splits CLWB into 1 ISA set. Software can use a form when the processor reports every CPUID bit of one alternative of the form's ISA set.
| ISA set | CPUID | Processors in XED |
|---|---|---|
CLWB | CLWB | Tiger Lake, Alder Lake, Arrow Lake, Panther Lake, Nova Lake, Skylake-SP, Cascade Lake, Cooper Lake, Ice Lake (server), Sapphire Rapids, Emerald Rapids, Granite Rapids, Diamond Rapids, Tremont, Snow Ridge, Sierra Forest, Clearwater Forest, Zen 2 |
Sources
- Intel XED v2026.08.23 (commit
0bcb6237345c): forms, encodings, ISA sets, CPUID bits and chip model. - Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-092, June 2026)
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 text is our own.