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

SHL

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

Syntax / Encoding

SHLv16i8_shift: shl $Rd.16b, $Rn.16b, $imm
SHLv8i8_shift: shl $Rd.8b, $Rn.8b, $imm
SHLv4i16_shift: shl $Rd.4h, $Rn.4h, $imm
SHLv8i16_shift: shl $Rd.8h, $Rn.8h, $imm
SHLv2i32_shift: shl $Rd.2s, $Rn.2s, $imm
SHLv4i32_shift: shl $Rd.4s, $Rn.4s, $imm
SHLd: shl $Rd, $Rn, $imm
SHLv2i64_shift: shl $Rd.2d, $Rn.2d, $imm

Cross-Chip Latency & Throughput (13 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
Samsung Exynos M310.331M3UnitNSHTllvm_sched_models
Samsung Exynos M410.331M4UnitNSHTllvm_sched_models
Arm C1-Premium20.51C1PUnitVllvm_sched_models
Arm Neoverse N2211N2UnitV1llvm_sched_models
Arm Neoverse N3211N3UnitV1llvm_sched_models
Arm Neoverse V220.51V2UnitV13llvm_sched_models
Arm Neoverse V320.251V3UnitVllvm_sched_models
Arm Neoverse V3AE20.51V3AEUnitVllvm_sched_models
NVIDIA Olympus (Vera)20.171OlympusUnitVllvm_sched_models
Samsung Exynos M520.331M5UnitNSHTllvm_sched_models
HiSilicon TaiShan v110411TSV110UnitFSU1llvm_sched_models

Binary Encodings (8)

WidthFormatBit PatternMask / Match
32SHLv16i8_shift0100111100001xxx010101xxxxxxxxxx0xfff8fc00 / 0x4f085400
32SHLv8i8_shift0000111100001xxx010101xxxxxxxxxx0xfff8fc00 / 0x0f085400
32SHLv4i16_shift000011110001xxxx010101xxxxxxxxxx0xfff0fc00 / 0x0f105400
32SHLv8i16_shift010011110001xxxx010101xxxxxxxxxx0xfff0fc00 / 0x4f105400
32SHLv2i32_shift00001111001xxxxx010101xxxxxxxxxx0xffe0fc00 / 0x0f205400
32SHLv4i32_shift01001111001xxxxx010101xxxxxxxxxx0xffe0fc00 / 0x4f205400
32SHLd0101111101xxxxxx010101xxxxxxxxxx0xffc0fc00 / 0x5f405400
32SHLv2i64_shift0100111101xxxxxx010101xxxxxxxxxx0xffc0fc00 / 0x4f405400

Operands

NameDescription
Rd
Rn
imm
Rd
Rn
imm
Rd
Rn
imm
imm