cmp.w

Compare (Wide)

CMP.W <Rn>, <Operand2>

Thumb-2 32-bit Compare (Subtract and update flags).

Details

The Compare instruction thumb-2 32-bit Compare (Subtract and update flags).

Pseudocode Operation

// Thumb-2 32-bit Compare (Subtract and update flags)

Example

CMP.W r1, r2

Encoding

Binary Layout
111010111011
Rn
0
imm3
1111
imm8
 
Format Thumb2 Data Proc
Opcode 0xEBB00F00
Extension T32 (Thumb2)

Operands

  • Rn
    First source / base general-purpose register
  • Operand2
    Flexible second operand (register or shifted register)