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

sw.aqrl

T1 riscv load_store insn
Store Word Acquire Release
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zalasr
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZalasr

Summary

Store the lowest 32 bits of register xs2 to the address in xs1.

Syntax / Encoding

sw.aqrl xs2, (xs1) | 0011111xxxxxxxxxx010000000101111 (mask=0xfe007fff match=0x3e00202f)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV0011111xxxxxxxxxx0100000001011110xfe007fff / 0x3e00202f

Operands

NameDescription
xs2bits [24:20]
xs1bits [19:15]

Reference Notes

Store the lowest 32 bits of register `xs2` to the address in `xs1`.

This instruction has both acquire and release semantics. No subsequent memory
operations (in program order) from this hart can be observed to occur before
this store completes, and no previous memory operations can be observed to occur
after this store completes.

The address must be naturally aligned (4-byte aligned); if not, an
address-misaligned or access-fault exception will be raised.