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

MRS

T2 arm32 system insn
AArch32 T32/Thumb-2 Instruction: MRS
SourceLLVM AArch32 (A32/T32) Instruction Definitions (llvm_arm32_isa)
Reliability TierT2 — Compiler & Kernel Reference
ISA / Silicon ScopeARMv7-A / ARMv8-A AArch32 / Cortex-M (T32/Thumb-2)
ARMv7-A / ARMv8-A AArch32 (A32/T32/VFP/NEON)
License & VersionApache-2.0 WITH LLVM-exception
llvm/main
Upstreamhttps://github.com/llvm/llvm-project/tree/main/llvm/lib/Target/ARM
Privilegeuser
ExtensionsT32/Thumb-2, MClass, NotMClass, Virtualization

Summary

AArch32 MRS instruction (T32/Thumb-2, 32-bit) with 4 encoding variants extracted from LLVM TableGen. Extensions: MClass, NotMClass, Virtualization.

Syntax / Encoding

t2MRS_AR: mrs${p} $Rd, apsr
t2MRSsys_AR: mrs${p} $Rd, spsr
t2MRSbanked: mrs${p} $Rd, $banked
t2MRS_M: mrs${p} $Rd, $SYSm

Binary Encodings (4)

WidthFormatBit PatternMask / Match
32t2MRS_AR11110011111011111000xxxx000000000xfffff0ff / 0xf3ef8000
32t2MRSsys_AR11110011111111111000xxxx000000000xfffff0ff / 0xf3ff8000
32t2MRSbanked11110011111xxxxx1000xxxx001x00000xffe0f0ef / 0xf3e08020
32t2MRS_M11110011111011111000xxxxxxxxxxxx0xfffff000 / 0xf3ef8000

Operands

NameDescription
Rd
Rd
SYSm
banked