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

BPF_LDX_MEMSX

T1 ebpf alu insn
eBPF BPF_LDX_MEMSX (MEM)
SourceIETF RFC 9669 Official eBPF Instruction Set Architecture v1.0 (ebpf_rfc9669)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeeBPF ISA v1.0 (IETF RFC 9669)
Linux / Windows / Hardware eBPF VMs
License & VersionIETF Trust Legal Provisions
RFC 9669
Upstreamhttps://www.rfc-editor.org/rfc/rfc9669.txt
Privilegeuser

Summary

Sign-extending load from memory (8/16/32-bit).

Syntax / Encoding

BPF_LDX_MEMSX [opcodes: 0x81, 0x89, 0x91] — dst = *(signed type *)(src + offset) [W=0x81, H=0x89, B=0x91]

Binary Encodings (3)

WidthFormatBit PatternMask / Match
64eBPF-MEMxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx100000010xff / 0x81
64eBPF-MEMxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx100010010xff / 0x89
64eBPF-MEMxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx100100010xff / 0x91

Operands

NameDescription
dst_regDestination register or base address
src_regBase address (LDX) or source value (STX/ATOMIC)
offsetSigned 16-bit address offset