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

SHSUB

T2 arm64 load_store insn
AArch64 A64 Instruction: SHSUB
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, NEON

Summary

AArch64 SHSUB instruction (A64, 32-bit) with 6 encoding variants extracted from LLVM TableGen. Extensions: NEON.

Syntax / Encoding

SHSUBv16i8: shsub $Rd.16b, $Rn.16b, $Rm.16b
SHSUBv2i32: shsub $Rd.2s, $Rn.2s, $Rm.2s
SHSUBv4i16: shsub $Rd.4h, $Rn.4h, $Rm.4h
SHSUBv4i32: shsub $Rd.4s, $Rn.4s, $Rm.4s
SHSUBv8i16: shsub $Rd.8h, $Rn.8h, $Rm.8h
SHSUBv8i8: shsub $Rd.8b, $Rn.8b, $Rm.8b

Cross-Chip Latency & Throughput (3 cores)

MicroarchitectureLatency (cycles)Recip. TPuopsPortsSource
Apple M1 Firestorm (P-core)20.251- - 1 u11-14apple_dougallj
Apple M1 Icestorm (E-core)20.51- - 1 u6-7apple_dougallj
NVIDIA Olympus (Vera)20.171OlympusUnitVllvm_sched_models

Binary Encodings (6)

WidthFormatBit PatternMask / Match
32SHSUBv16i801001110001xxxxx001001xxxxxxxxxx0xffe0fc00 / 0x4e202400
32SHSUBv2i3200001110101xxxxx001001xxxxxxxxxx0xffe0fc00 / 0x0ea02400
32SHSUBv4i1600001110011xxxxx001001xxxxxxxxxx0xffe0fc00 / 0x0e602400
32SHSUBv4i3201001110101xxxxx001001xxxxxxxxxx0xffe0fc00 / 0x4ea02400
32SHSUBv8i1601001110011xxxxx001001xxxxxxxxxx0xffe0fc00 / 0x4e602400
32SHSUBv8i800001110001xxxxx001001xxxxxxxxxx0xffe0fc00 / 0x0e202400

Operands

NameDescription
Rd
Rn
Rm
Rd
Rn
Rm