sh.aqrl

Store the lowest 16 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 (2-byte aligned); if not, an address-misaligned or access-fault exception will be raised.

Synopsis

sh.aqrl xs2, (xs1)

Encoding

Type:

014151920242531001000000101111xs1xs20011111
funct7: 0011111
funct3: 001
opcode: 0101111

RISC-V Instruction Encoder/Decoder

open sh.aqrl in rvcodecjs

Availability