STSMIN, STSMINL

Atomic signed minimum on word or doubleword in memory, without return

This instruction atomically loads a 32-bit word or 64-bit doubleword from memory, compares it against the value held in a register, and stores the smaller value back to memory, treating the values as signed numbers.

  • STSMIN does not have release semantics.
  • STSMINL stores to memory with release semantics, as described in Load-Acquire, Store-Release.
  • For information about addressing modes, see Load/Store addressing modes.

    Encoding: Integer

    Variants: FEAT_LSE (ARMv8.1)

    313029282726252423222120191817161514131211109876543210
    1x1110000101010011111
    sizeVRARRso3opcRnRt

    32-bit no memory ordering (size == 10 && R == 0)

    STSMIN <Ws>, [<Xn|SP>]

    Equivalent to: LDSMIN <Ws>, WZR, [<Xn|SP>]

    32-bit release (size == 10 && R == 1)

    STSMINL <Ws>, [<Xn|SP>]

    Equivalent to: LDSMINL <Ws>, WZR, [<Xn|SP>]

    64-bit no memory ordering (size == 11 && R == 0)

    STSMIN <Xs>, [<Xn|SP>]

    Equivalent to: LDSMIN <Xs>, XZR, [<Xn|SP>]

    64-bit release (size == 11 && R == 1)

    STSMINL <Xs>, [<Xn|SP>]

    Equivalent to: LDSMINL <Xs>, XZR, [<Xn|SP>]

    Explanations

    <Ws>: Is the 32-bit name of the general-purpose register holding the data value to be operated on with the contents of the memory location, encoded in the "Rs" field.
    <Xn|SP>: Is the 64-bit name of the general-purpose base register or stack pointer, encoded in the "Rn" field.
    <Xs>: Is the 64-bit name of the general-purpose register holding the data value to be operated on with the contents of the memory location, encoded in the "Rs" field.

    Operational Notes

    If PSTATE.DIT is 1, the timing of this instruction is insensitive to the value of the data being loaded or stored.