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

LH

T2 mips load_store insn
MIPS MIPS32 Instruction: LH
SourceLLVM MIPS32 / MIPS64 Instruction & Feature Definitions (llvm_mips_isa)
Reliability TierT2 — Compiler & Kernel Reference
ISA / Silicon ScopeMIPS64 r6 (MIPS32)
MIPS32/MIPS64 r1–r6, microMIPS, MSA, Cavium Octeon
License & VersionApache-2.0 WITH LLVM-exception
llvm/main
Upstreamhttps://github.com/llvm/llvm-project/tree/main/llvm/lib/Target/Mips
Privilegeuser
ExtensionsMIPS32, NanoMips

Summary

MIPS LH instruction (MIPS32, 32-bit) with 3 encoding variants extracted from LLVM TableGen. Effects: load. Extensions: NanoMips.

Syntax / Encoding

LHs9_NM: lh $rt, ${offset}(${base})

Cross-Chip Latency & Throughput (1 cores)

MicroarchitectureLatency (cycles)Recip. TPuopsPortsSource
MIPS P5600411P5600IssueLDSTllvm_sched_models

Binary Encodings (3)

WidthFormatBit PatternMask / Match
32LHs9_NM101001xxxxxxxxxxx0100000xxxxxxxx0xfc007f00 / 0xa4002000
32LHGP_NM010001xxxxx100xxxxxxxxxxxxxxxxx00xfc1c0001 / 0x44100000
32LH_NM100001xxxxxxxxxx0100xxxxxxxxxxxx0xfc00f000 / 0x84004000

Operands

NameDescription
rt
base
offset
base
offset
offset