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

CAS

T2 arm64 atomic insn
AArch64 A64 Instruction: CAS
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, LSE

Summary

AArch64 CAS instruction (A64, 32-bit) with 2 encoding variants extracted from LLVM TableGen. Effects: load, store. Extensions: LSE.

Syntax / Encoding

CASW: cas $Rs, $Rt, [$Rn]

Cross-Chip Latency & Throughput (7 cores)

MicroarchitectureLatency (cycles)Recip. TPuopsPortsSource
Apple M1 Firestorm (P-core)34—3 -apple_dougallj
Apple M1 Icestorm (E-core)74—3 -apple_dougallj
Marvell ThunderX3 T11040.253THX3T110I0123llvm_sched_models
Fujitsu A64FX (SVE 512b)70.51A64FXGI56llvm_sched_models
Marvell ThunderX2 T9980.54THX2T99LS01+THX2T99I012llvm_sched_models
Samsung Exynos M5136.51M5UnitAW+M5UnitLllvm_sched_models
Arm Neoverse N2140.52N2UnitL+N2UnitDllvm_sched_models

Binary Encodings (2)

WidthFormatBit PatternMask / Match
32CASW10001000101xxxxx011111xxxxxxxxxx0xffe0fc00 / 0x88a07c00
32CASX11001000101xxxxx011111xxxxxxxxxx0xffe0fc00 / 0xc8a07c00

Operands

NameDescription
out
Rs
Rt
Rn
out
Rs
Rt