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

LDRH

T2 arm32 load_store insn
AArch32 T32/Thumb-2 Instruction: LDRH
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

Summary

AArch32 LDRH instruction (T32/Thumb-2, 32-bit) with 3 encoding variants extracted from LLVM TableGen. Effects: load.

Syntax / Encoding

t2LDRH_POST: ldrh${p} $Rt, $Rn$offset
t2LDRH_PRE: ldrh${p} $Rt, $addr!
t2LDRHi8: ldrh${p} $Rt, $addr

Binary Encodings (3)

WidthFormatBit PatternMask / Match
32t2LDRH_POST111110000011xxxxxxxx10x1xxxxxxxx0xfff00d00 / 0xf8300900
32t2LDRH_PRE111110000011xxxxxxxx11x1xxxxxxxx0xfff00d00 / 0xf8300d00
32t2LDRHi8111110000011xxxxxxxx11x0xxxxxxxx0xfff00d00 / 0xf8300c00

Operands

NameDescription
Rt
Rn_wb
Rn
offset
addr
Rt
addr