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

SRSHL

T2 arm64 bitmanip insn
AArch64 A64 Instruction: SRSHL
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 SRSHL instruction (A64, 32-bit) with 8 encoding variants extracted from LLVM TableGen. Extensions: NEON.

Syntax / Encoding

SRSHLv16i8: srshl $Rd.16b, $Rn.16b, $Rm.16b
SRSHLv1i64: srshl $Rd, $Rn, $Rm
SRSHLv2i32: srshl $Rd.2s, $Rn.2s, $Rm.2s
SRSHLv2i64: srshl $Rd.2d, $Rn.2d, $Rm.2d
SRSHLv4i16: srshl $Rd.4h, $Rn.4h, $Rm.4h
SRSHLv4i32: srshl $Rd.4s, $Rn.4s, $Rm.4s
SRSHLv8i16: srshl $Rd.8h, $Rn.8h, $Rm.8h
SRSHLv8i8: srshl $Rd.8b, $Rn.8b, $Rm.8b

Cross-Chip Latency & Throughput (4 cores)

MicroarchitectureLatency (cycles)Recip. TPuopsPortsSource
Apple M1 Firestorm (P-core)30.251- - 1 u11-14apple_dougallj
Apple M1 Icestorm (E-core)30.51- - 1 u6-7apple_dougallj
Apple Cyclone (A7)30.331CyUnitVllvm_sched_models
NVIDIA Olympus (Vera)40.171OlympusUnitVllvm_sched_models

Binary Encodings (8)

WidthFormatBit PatternMask / Match
32SRSHLv16i801001110001xxxxx010101xxxxxxxxxx0xffe0fc00 / 0x4e205400
32SRSHLv1i6401011110111xxxxx010101xxxxxxxxxx0xffe0fc00 / 0x5ee05400
32SRSHLv2i3200001110101xxxxx010101xxxxxxxxxx0xffe0fc00 / 0x0ea05400
32SRSHLv2i6401001110111xxxxx010101xxxxxxxxxx0xffe0fc00 / 0x4ee05400
32SRSHLv4i1600001110011xxxxx010101xxxxxxxxxx0xffe0fc00 / 0x0e605400
32SRSHLv4i3201001110101xxxxx010101xxxxxxxxxx0xffe0fc00 / 0x4ea05400
32SRSHLv8i1601001110011xxxxx010101xxxxxxxxxx0xffe0fc00 / 0x4e605400
32SRSHLv8i800001110001xxxxx010101xxxxxxxxxx0xffe0fc00 / 0x0e205400

Operands

NameDescription
Rd
Rn
Rm
Rd
Rn
Rm
Rd
Rn
Rm