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

SRA

T2 sparc alu insn
SPARC SPARCv8 Instruction: SRA
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 SRA instruction (SPARCv8, 32-bit) with 2 encoding variants extracted from LLVM TableGen.

Syntax / Encoding

SRAri: sra $rs1, $shcnt, $rd
SRArr: sra $rs1, $rs2, $rd

Binary Encodings (2)

WidthFormatBit PatternMask / Match
32SRAri10xxxxx100111xxxxx10xxxxxxxxxxxx0xc1f83000 / 0x81382000
32SRArr10xxxxx100111xxxxx00xxxxxxxxxxxx0xc1f83000 / 0x81380000

Operands

NameDescription
rd
rs1
shcnt
rs2