Demote Cache Line

Encoding

EncodingOperand
mModRM.r/m

Description

The CLDEMOTE instruction hints to the processor that the cache line containing the operand's effective address should be moved ("demoted") to a cache further away from the core.

Software using this instruction should ensure that the referenced memory is not accessed afterwards to avoid cache data move penalties.

This instruction has no guarantees and may be ignored by the processor. For example, usage of this instruction with an effective memory address that is not in the cache will do nothing.

In some architectures, this instruction may cause a transactional abort with the Transactional Synchronization Extensions (TSX). However, programmers must not rely on this behavior.

Operation

public void CLDEMOTE(IntPtr addr)
{
    CacheLineDemote(addr);
}

Intrinsics

Exceptions

Real-Address Mode

#UD
  • If the
  • LOCK
  • prefix is used.

Virtual-8086 Mode

#UD
  • If the
  • LOCK
  • prefix is used.

Protected Mode

#UD
  • If the
  • LOCK
  • prefix is used.

Compatibility Mode

#UD
  • If the
  • LOCK
  • prefix is used.

Long Mode

#UD
  • If the
  • LOCK
  • prefix is used.