cas

Compare and Swap Doubleword

CAS <Xs>, <Xt>, [<Xn|SP>]

Atomic Compare and Swap (64-bit).

Details

The Compare and Swap Doubleword instruction atomic Compare and Swap (64-bit).

Pseudocode Operation

// Atomic Compare and Swap (64-bit)

Example

CAS x6, x3, [x1]

Encoding

Binary Layout
11001000
1
0
1
00010
11111
Rn
Rt
 
Format Atomic
Opcode 0xC8A07C00
Extension LSE (Atomics)

Operands

  • Xs
    Compare
  • Xt
    Swap
  • Xn
    First source / base 64-bit integer register