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

SUB

T2 msp430 alu insn
MSP430 MSP430 16-bit Instruction: SUB
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 SUB instruction (MSP430 16-bit, 48-bit) with 12 encoding variants extracted from LLVM TableGen. Effects: load.

Syntax / Encoding

SUB16mi: sub $imm, $dst
SUB16ri: sub $imm, $rd
SUB16mm: sub $src, $dst
SUB16mn: sub $rs, $dst
SUB16rm: sub $src, $rd
SUB16rn: sub $rs, $rd

Binary Encodings (6)

WidthFormatBit PatternMask / Match
48SUB16mixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx100000001011xxxx0x00000000fff0 / 0x0000000080b0
48SUB16rixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx100000000011xxxx0x00000000fff0 / 0x000000008030
48SUB16mmxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1000xxxx1001xxxx0x00000000f0f0 / 0x000000008090
48SUB16mnxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1000xxxx1010xxxx0x00000000f0f0 / 0x0000000080a0
48SUB16mpxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1000xxxx1011xxxx0x00000000f0f0 / 0x0000000080b0
48SUB16mrxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx1000xxxx1000xxxx0x00000000f0f0 / 0x000000008080

Operands

NameDescription
dst
imm
imm
src
rs
rs
rs
rd
src2
wb