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

CMP.W

T2 arm32 alu insn
AArch32 T32/Thumb-2 Instruction: CMP.W
SourceLLVM AArch32 (A32/T32) Instruction Definitions (llvm_arm32_isa)
Reliability TierT2 — Compiler & Kernel Reference
ISA / Silicon ScopeARMv7-A / ARMv8-A AArch32 / Cortex-M (T32/Thumb-2)
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
ExtensionsT32/Thumb-2

Summary

AArch32 CMP.W instruction (T32/Thumb-2, 32-bit) with 3 encoding variants extracted from LLVM TableGen.

Syntax / Encoding

t2CMPrr: cmp${p}.w $Rn, $Rm
t2CMPri: cmp${p}.w $Rn, $imm
t2CMPrs: cmp${p}.w $Rn, $ShiftedRm

Binary Encodings (3)

WidthFormatBit PatternMask / Match
32t2CMPrr111010111011xxxxx00011110000xxxx0xfff07ff0 / 0xebb00f00
32t2CMPri11110x011011xxxx0xxx1111xxxxxxxx0xfbf08f00 / 0xf1b00f00
32t2CMPrs111010111011xxxxxxxx1111xxxxxxxx0xfff00f00 / 0xebb00f00

Operands

NameDescription
Rn
imm
Rm
ShiftedRm