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

CMP.B

T2 msp430 alu insn
MSP430 MSP430 16-bit Instruction: CMP.B
SourceLLVM TI MSP430 16-bit MCU ISA Definitions (llvm_msp430_isa)
Reliability TierT2 — Compiler & Kernel Reference
ISA / Silicon ScopeTI MSP430 (MSP430 16-bit)
Texas Instruments MSP430 / MSP430X 16-bit MCUs
License & VersionApache-2.0 WITH LLVM-exception
llvm/main
Upstreamhttps://github.com/llvm/llvm-project/tree/main/llvm/lib/Target/MSP430
Privilegeuser
ExtensionsMSP430 16-bit

Summary

MSP430 CMP.B instruction (MSP430 16-bit, 48-bit) with 12 encoding variants extracted from LLVM TableGen.

Syntax / Encoding

CMP8mi: cmp.b $imm, $dst
CMP8ri: cmp.b $imm, $rd
CMP8mm: cmp.b $src, $dst
CMP8mn: cmp.b $rs, $dst
CMP8rm: cmp.b $src, $rd
CMP8rn: cmp.b $rs, $rd

Binary Encodings (6)

WidthFormatBit PatternMask / Match
48CMP8mixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx100100001111xxxx0x00000000fff0 / 0x0000000090f0
48CMP8rixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx100100000111xxxx0x00000000fff0 / 0x000000009070
48CMP8mmxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1001xxxx1101xxxx0x00000000f0f0 / 0x0000000090d0
48CMP8mnxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1001xxxx1110xxxx0x00000000f0f0 / 0x0000000090e0
48CMP8mpxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1001xxxx1111xxxx0x00000000f0f0 / 0x0000000090f0
48CMP8mrxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1001xxxx1100xxxx0x00000000f0f0 / 0x0000000090c0

Operands

NameDescription
dst
imm
imm
dst
src
rs
rs
rs
rd