Skip navigation

ARM Instruction CMP

Compare

CMP

Thumb syntax (narrow, v4T)

CMPRn, RmSee [1]
CMPRn, #0255See [2]

Thumb syntax (wide, v6T2)

CMPRn, #constSee [3]
CMPRn, Rm, shiftSee [4]

Arm syntax (v4T)

CMPRn, #constSee [5]
CMPRn, Rm, shiftSee [6]

Notes

  1. RnPC
  2. Rn must be R0…R7
  3. RnPC; const is one of $00xx00xx, $xx00xx00, $xxxxxxxx, $xx LSL 024
  4. Rn, RmPC; RmSP; shift is one of LSL #031, LSR #132, ASR #132, RRX
  5. RnPC; const is $xx ROR 2n
  6. Rn, RmPC; RmSP; shift is one of LSL #031/Rs, LSR #132/Rs, ASR #132/Rs, ROR #131/Rs, RRX