ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 913 microarchs · 15,555 chips · 105 sources
Arch:
Tier:

CLZ

T2 arm64 matrix insn
AArch64 SME Instruction: CLZ
SourceLLVM AArch64 Instruction & Feature Definitions (llvm_aarch64_isa)
Reliability TierT2 — Compiler & Kernel Reference
ISA / Silicon ScopeArmv8-A / Armv9-A (SME)
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
ExtensionsSME, SVE2p2_or_SME2p2, SVE_or_SME

Summary

AArch64 CLZ instruction (SME, 32-bit) with 8 encoding variants extracted from LLVM TableGen. Extensions: SVE2p2_or_SME2p2, SVE_or_SME.

Syntax / Encoding

CLZ_ZPmZ_B: clz $Zd, $Pg/m, $Zn
CLZ_ZPzZ_B: clz $Zd, $Pg/z, $Zn

Cross-Chip Latency & Throughput (8 cores)

MicroarchitectureLatency (cycles)Recip. TPuopsPortsSource
Apple M1 Firestorm (P-core)1–20.16711 - - u1-6apple_dougallj
Apple M1 Icestorm (E-core)1–20.33311 - - u1-3apple_dougallj
Samsung Exynos M510.171M5UnitAWllvm_sched_models
NVIDIA Olympus (Vera)20.171OlympusUnitVllvm_sched_models
Qualcomm Oryon20.251ORYONFP0123llvm_sched_models
Marvell ThunderX3 T11031.52THX3T110FP23+THX3T110FP0123llvm_sched_models
Fujitsu A64FX (SVE 512b)411A64FXGI0llvm_sched_models
Marvell ThunderX2 T9950.52THX2T99F01llvm_sched_models

Binary Encodings (8)

WidthFormatBit PatternMask / Match
32CLZ_ZPmZ_B0000010000011001101xxxxxxxxxxxxx0xffffe000 / 0x0419a000
32CLZ_ZPmZ_D0000010011011001101xxxxxxxxxxxxx0xffffe000 / 0x04d9a000
32CLZ_ZPmZ_H0000010001011001101xxxxxxxxxxxxx0xffffe000 / 0x0459a000
32CLZ_ZPmZ_S0000010010011001101xxxxxxxxxxxxx0xffffe000 / 0x0499a000
32CLZ_ZPzZ_B0000010000001001101xxxxxxxxxxxxx0xffffe000 / 0x0409a000
32CLZ_ZPzZ_D0000010011001001101xxxxxxxxxxxxx0xffffe000 / 0x04c9a000
32CLZ_ZPzZ_H0000010001001001101xxxxxxxxxxxxx0xffffe000 / 0x0449a000
32CLZ_ZPzZ_S0000010010001001101xxxxxxxxxxxxx0xffffe000 / 0x0489a000

Operands

NameDescription
Zd
_Zd
Pg
Zn
Zd
_Zd
Zn
Zd
_Zd
Zn
Zd
_Zd
Zn