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

sw.rl

T1 riscv load_store insn
Store Word 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.rl xs2, (xs1) | 0011101xxxxxxxxxx010000000101111 (mask=0xfe007fff match=0x3a00202f)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV0011101xxxxxxxxxx0100000001011110xfe007fff / 0x3a00202f

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 release semantics, which means that no previous memory
operations (in program order) from this hart can be observed to occur after
this store completes. Release semantics provide ordering guarantees useful for
synchronization, such as writing a lock variable to release it.

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