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

MSR

T2 arm64 system insn
AArch64 A64 Instruction: MSR
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

Summary

AArch64 MSR instruction (A64, 32-bit) with 4 encoding variants extracted from LLVM TableGen.

Syntax / Encoding

MSRpstatesvcrImm1: msr $pstatefield, $imm
MSR: msr $systemreg, $Rt

Cross-Chip Latency & Throughput (2 cores)

MicroarchitectureLatency (cycles)Recip. TPuopsPortsSource
Apple M1 Icestorm (E-core)0.366–2711- -apple_dougallj
Apple M1 Firestorm (P-core)0.5–1211- - -apple_dougallj

Binary Encodings (3)

WidthFormatBit PatternMask / Match
32MSRpstatesvcrImm111010101000000110100xxxx011111110xfffff0ff / 0xd503407f
32MSRpstateImm11101010100000xxx0100xxxxxxx111110xfff8f01f / 0xd500401f
32MSR11010101000xxxxxxxxxxxxxxxxxxxxx0xffe00000 / 0xd5000000

Operands

NameDescription
systemreg
Rt
pstatefield
imm
pstatefield
imm
pstatefield
imm