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

CLTS clears TS, bit 3 of CR0, and nothing else. TS exists for lazy saving of the floating-point state: while it is set, the first x87, MMX, SSE or AVX instruction raises #NM, the device-not-available exception, before it runs, and so do FXSAVE and the XSAVE family. An operating system that switches tasks without saving the vector registers sets TS; if the new task never touches them, nothing is saved at all, and if it does, the #NM handler saves the previous owner’s state, loads the new one and runs CLTS so that the instruction can be retried without another fault.

Where TS comes from

The 32-bit task switch of protected mode sets TS on its own. That mechanism does not exist in long mode, so in 64-bit mode TS is set only by software, with MOV to CR0 or LMSW. CLTS is the one way to clear it without rewriting the whole of CR0, which needs a read of CR0 with MOV first.

What TS does not stop

Intel’s Volume 3 lists the instructions that run despite TS because they do not touch that state: PAUSE, the prefetches, SFENCE, LFENCE, MFENCE, MOVNTI, CLFLUSH, CRC32 and POPCNT. With MP clear, WAIT and FWAIT run too. With CR0.EM set, TS changes nothing, since EM’s own rules then govern the x87, MMX and SSE instructions.

Privilege and virtualization

CLTS runs only at CPL 0, and in real mode, so that start-up code can use it before protected mode is entered; elsewhere it raises #GP(0). At CPL 3, Zen 5 raised #GP in both recorded cases, with RFLAGS left alone. Under VMX, the CR0 guest/host mask and read shadow decide: a hypervisor that owns TS can make CLTS exit, let it complete without changing the guest’s view, or let it clear TS as usual. Neither GCC 14 nor Clang 23 has an intrinsic for it: C code needs inline assembly. AMD’s Zen 5 guide lists CLTS as microcoded.

Forms

Every encoding of CLTS that Intel XED knows, one row per XED instruction form (iform). How to read the notation.
InstructionEncodingRequires
CLTS CLTS0F 06Base instruction set

Operation

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

if CPL > 0:
    fault(GP, 0)
cr0 = cr0 & ~8                   # TS, bit 3, which a task switch sets
                                 # so that the next x87, MMX or SSE
                                 # instruction raises #NM

Run on AMD Zen 5 (EPYC 9645): 2 cases. Every one raised an exception, at CPL 3, where the probe runs.

Operands

None: XED lists no operands for this form.

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
privileged: CPL 0 only; may abort a TSX transaction

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
I286REAL

No CPUID bit: part of the base instruction set.

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

More System 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. Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-093, September 2026): Volume 2A, page 3-152 (CLTS)
  4. Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 3 (325384-093, September 2026)
  5. Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 1 (253665-093, September 2026)
  6. AMD64 Architecture Programmer's Manual, Volume 2: System Programming (24593, rev. 3.42, March 2024), Wayback Machine copy of AMD's PDF
  7. AMD64 Architecture Programmer's Manual, Volume 3: General-Purpose and System Instructions (24594, rev. 3.36, March 2024), Wayback Machine copy of AMD's PDF
  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 text is our own.