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

SUBS

T2 arm64 alu insn
AArch64 A64 Instruction: SUBS
SourceLLVM AArch64 Instruction & Feature Definitions (llvm_aarch64_isa)
Reliability TierT2 — Compiler & Kernel Reference
ISA / Silicon ScopeArmv8-A / Armv9-A (A64)
Armv8-A / Armv9-A (SVE, SVE2, SME, FP8, MTE, Apple Silicon)
License & VersionApache-2.0 WITH LLVM-exception
llvm/main
Upstreamhttps://github.com/llvm/llvm-project/tree/main/llvm/lib/Target/AArch64
Privilegeuser
ExtensionsA64

Summary

AArch64 SUBS instruction (A64, 32-bit) with 7 encoding variants extracted from LLVM TableGen.

Syntax / Encoding

SUBSXrx64: subs $Rd, $Rn, $Rm$ext
SUBSWrx: subs $Rd, $Rn, $Rm_and_extend
SUBSWrs: subs $Rd, $Rn, $Rm_and_shift
SUBSWri: subs $Rd, $Rn, $imm

Cross-Chip Latency & Throughput (4 cores)

MicroarchitectureLatency (cycles)Recip. TPuopsPortsSource
Apple M1 Firestorm (P-core)1–20.33311 - - u1-3apple_dougallj
Apple M1 Icestorm (E-core)1–20.511 - - u1-3apple_dougallj
Arm Neoverse V11–20.332V1UnitM+V1UnitFlgllvm_sched_models
Arm Neoverse V21–20.332V2UnitM+V2UnitFlgllvm_sched_models

Binary Encodings (7)

WidthFormatBit PatternMask / Match
32SUBSXrx6411101011001xxxxxx11xxxxxxxxxxxxx0xffe06000 / 0xeb206000
32SUBSWrx01101011001xxxxxxxxxxxxxxxxxxxxx0xffe00000 / 0x6b200000
32SUBSXrx11101011001xxxxxxxxxxxxxxxxxxxxx0xffe00000 / 0xeb200000
32SUBSWrs01101011xx0xxxxxxxxxxxxxxxxxxxxx0xff200000 / 0x6b000000
32SUBSXrs11101011xx0xxxxxxxxxxxxxxxxxxxxx0xff200000 / 0xeb000000
32SUBSWri01110001xxxxxxxxxxxxxxxxxxxxxxxx0xff000000 / 0x71000000
32SUBSXri11110001xxxxxxxxxxxxxxxxxxxxxxxx0xff000000 / 0xf1000000

Operands

NameDescription
Rd
Rn
imm
Rn
Rm_and_shift
Rm_and_extend
Rd
Rn
imm
Rn
Rm
ext