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

LHARX

T2 ppc64 load_store insn
PowerPC OpenPOWER Instruction: LHARX
SourceLLVM PowerPC / OpenPOWER Instruction & Feature Definitions (llvm_ppc64_isa)
Reliability TierT2 — Compiler & Kernel Reference
ISA / Silicon ScopeOpenPOWER ISA 3.1 (OpenPOWER)
OpenPOWER ISA 2.07–3.1 (POWER7 / POWER8 / POWER9 / POWER10 / POWER11)
License & VersionApache-2.0 WITH LLVM-exception
llvm/main
Upstreamhttps://github.com/llvm/llvm-project/tree/main/llvm/lib/Target/PowerPC
Privilegeuser
ExtensionsOpenPOWER, PartwordAtomics

Summary

PowerPC LHARX instruction (OpenPOWER, 32-bit) with 2 encoding variants extracted from LLVM TableGen. Effects: load, store. Extensions: PartwordAtomics.

Syntax / Encoding

LHARX: lharx $RST, $addr
LHARXL: lharx $RST, $addr, 1

Cross-Chip Latency & Throughput (1 cores)

MicroarchitectureLatency (cycles)Recip. TPuopsPortsSource
IBM POWER830.251P8_LU_LSllvm_sched_models

Binary Encodings (2)

WidthFormatBit PatternMask / Match
32LHARX00010111000xxxxxxxxxxxxxxx1111100xffe0003f / 0x1700003e
32LHARXL10010111000xxxxxxxxxxxxxxx1111100xffe0003f / 0x9700003e

Operands

NameDescription
RST
addr