amoswap.h.aqrl

Atomically with acquire and release ordering: * Load the halfword at address _xs1_ * Write the sign-extended value into _xd_ * Store the least-significant halfword of register _xs2_ to the address in _xs1_

Synopsis

amoswap.h.aqrl xd, xs2, (xs1)

Encoding

Type: R

0671112141519202425310101111xd001xs1xs20000111
funct7: 0000111
funct3: 001
opcode: 0101111

RISC-V Instruction Encoder/Decoder

open amoswap.h.aqrl in rvcodecjs

Availability