ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

CMP

T2 arm32 alu insn
AArch32 A32 Instruction: CMP
SourceLLVM AArch32 (A32/T32) Instruction Definitions (llvm_arm32_isa)
Reliability TierT2 — Compiler & Kernel Reference
ISA / Silicon ScopeARMv7-A / ARMv8-A AArch32 / Cortex-M (A32)
ARMv7-A / ARMv8-A AArch32 (A32/T32/VFP/NEON)
License & VersionApache-2.0 WITH LLVM-exception
llvm/main
Upstreamhttps://github.com/llvm/llvm-project/tree/main/llvm/lib/Target/ARM
Privilegeuser
ExtensionsA32, Thumb1Only

Summary

AArch32 CMP instruction (A32, 32-bit) with 7 encoding variants extracted from LLVM TableGen. Extensions: Thumb1Only.

Syntax / Encoding

CMPrr: cmp${p} $Rn, $Rm
CMPrsr: cmp${p} $Rn, $shift
CMPri: cmp${p} $Rn, $imm
tCMPi8: cmp${p} $Rn, $imm8

Binary Encodings (7)

WidthFormatBit PatternMask / Match
32CMPrrxxxx00010101xxxx000000000000xxxx0x0ff0fff0 / 0x01500000
32CMPrsrxxxx00010101xxxx0000xxxx0xx1xxxx0x0ff0f090 / 0x01500010
32CMPrsixxxx00010101xxxx0000xxxxxxx0xxxx0x0ff0f010 / 0x01500000
32CMPrixxxx00110101xxxx0000xxxxxxxxxxxx0x0ff0f000 / 0x03500000
32tCMPr00000000000000000100001010xxxxxx0xffffffc0 / 0x00004280
32tCMPhir000000000000000001000101xxxxxxxx0xffffff00 / 0x00004500
32tCMPi8000000000000000000101xxxxxxxxxxx0xfffff800 / 0x00002800

Operands

NameDescription
Rn
imm
Rm
shift
Rn
shift
Rn
imm8
Rm