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

SWAP

T2 sparc load_store insn
SPARC SPARCv8 Instruction: SWAP
SourceLLVM SPARC V8/V9 Instruction & Feature Definitions (llvm_sparc_isa)
Reliability TierT2 — Compiler & Kernel Reference
ISA / Silicon ScopeSPARC V9 (SPARCv8)
SPARC V8 / V9, UltraSPARC, Niagra, LEON3/4
License & VersionApache-2.0 WITH LLVM-exception
llvm/main
Upstreamhttps://github.com/llvm/llvm-project/tree/main/llvm/lib/Target/Sparc
Privilegeuser
ExtensionsSPARCv8

Summary

SPARC SWAP instruction (SPARCv8, 32-bit) with 2 encoding variants extracted from LLVM TableGen.

Syntax / Encoding

SWAPrr: swap [$addr], $rd

Binary Encodings (2)

WidthFormatBit PatternMask / Match
32SWAPrr11xxxxx001111xxxxx000000000xxxxx0xc1f83fe0 / 0xc0780000
32SWAPri11xxxxx001111xxxxx1xxxxxxxxxxxxx0xc1f82000 / 0xc0782000

Operands

NameDescription
rd
addr
val