amocas.w.aq

Atomically with acquire ordering: * Load the word at address _xs1_ * Write the sign-extended value into _xd_ * Compare the loaded value with the least-significant word of register _xs2_ * If equal, write the least-significant word of register _xs2+1_ to the address in _xs1_

Synopsis

amocas.w.aq xd, xs2, (xs1)

Encoding

Type: R

0671112141519202425310101111xd010xs1xs20010110
funct7: 0010110
funct3: 010
opcode: 0101111

RISC-V Instruction Encoder/Decoder

open amocas.w.aq in rvcodecjs

Availability