swp
Swap Word
SWP <Ws>, <Wt>, [<Xn|SP>]
Atomic swap of a word.
Details
The Swap Word instruction atomic swap of a word.
Pseudocode Operation
// Atomic swap of a word
Example
SWP w6, w3, [x1]
Encoding
Binary Layout
10111000
0
0
1
00010
11111
Rn
Rt
Operands
-
Ws
Shift amount 32-bit register -
Wt
Transfer 32-bit integer register (load/store) -
Xn
First source / base 64-bit integer register