FETCHMINS
Operation
Atomically stores the signed minimum of memory and source and returns the old value.
Assembler Syntax
FETCHMINS.{B|W|L|Q}(z)/order(o) Rn(s), <ea>(e)
Privilege
Unprivileged
Required CPUID flags
FETCHMINS
Atomically compares memory and source as signed selected-width integers, stores the lesser value, and returns the old memory value in the source register. The encoded memory-order selector governs the complete operation.
2.75in
Encodings
FETCHMINS.{B|W|L|Q}(z)/order(o) Rn(s), <ea>(e)
Format: Instruction format for FETCHMINS.{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]