Skip to content

FETCHXOR

Operation

Atomically XORs source with memory and returns the old memory value in the source register.

Assembler Syntax

FETCHXOR.{B|W|L|Q}(z)/order(o) Rn(s), <ea>(e)

Privilege

Unprivileged

Atomically replaces the memory operand with the selected-width bitwise exclusive-or of the old memory value and the source, and returns the old memory value in the source register.

2.75in

Encodings

FETCHXOR.{B|W|L|Q}(z)/order(o) Rn(s), <ea>(e)

Format: Instruction format for FETCHXOR.{B|W|L|Q}(z)/order(o) Rn(s), <ea>(e)

Format: Instruction format for FETCHXOR.{B|W|L|Q}(z)/order(o) Rn(s), <ea>(e)

orderallowed: 0x0..0x4 [memory_order_reserved_reclaimed]

memoryexcluded: immediate [memory_operand_required]