FETCHADD
Operation
Atomically adds source to memory and returns the old memory value in the source register.
Assembler Syntax
FETCHADD.{B|W|L|Q}(z)/order(o) Rn(s), <ea>(e)
Privilege
Unprivileged
Atomically replaces the memory operand with the selected-width sum of the old memory value and the source, and returns the old memory value in the source register.
2.75in
Encodings
FETCHADD.{B|W|L|Q}(z)/order(o) Rn(s), <ea>(e)
Format: Instruction format for FETCHADD.{B|W|L|Q}(z)/order(o) Rn(s), <ea>(e)
order — allowed: 0x0..0x4 [memory_order_reserved_reclaimed]
memory — excluded: immediate [memory_operand_required]