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

CMP

T2 arc alu insn
ARC ARC Instruction: CMP
SourceLLVM Synopsys ARC (ARCv2) ISA Definitions (llvm_arc_isa)
Reliability TierT2 — Compiler & Kernel Reference
ISA / Silicon ScopeSynopsys ARC (ARCv2) (ARC)
Synopsys DesignWare ARC EM / HS
License & VersionApache-2.0 WITH LLVM-exception
llvm/main
Upstreamhttps://github.com/llvm/llvm-project/tree/main/llvm/lib/Target/ARC
Privilegeuser
ExtensionsARC

Summary

ARC CMP instruction (ARC, 64-bit) with 3 encoding variants extracted from LLVM TableGen.

Syntax / Encoding

CMP_rlimm: cmp $B, $LImm
CMP_rr: cmp $B, $C
CMP_ru6: cmp $B, $U6

Binary Encodings (3)

WidthFormatBit PatternMask / Match
64CMP_rlimmxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx00100xxx000011001xxx111110xxxxxx0x00000000f8ff8fc0 / 0x00000000200c8f80
64CMP_rrxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx00100xxx000011001xxxxxxxxxxxxxxx0x00000000f8ff8000 / 0x00000000200c8000
64CMP_ru6xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx00100xxx010011001xxxxxxxxxxxxxxx0x00000000f8ff8000 / 0x00000000204c8000

Operands

NameDescription
B
LImm
C
U6