Webcentive RISC-V Reference

Zacas instructions

Atomic Compare-and-Swap (CAS) Instructions

Adds Word/Doubleword/Quadword compare-and-swap instructions.

Extension description from riscv-unified-db, reformatted.

Specification chapter: The RISC-V Instruction Set Manual, src/unpriv/zacas.adoc.

Instructions (5)

MnemonicName (riscv-unified-db)XLEN
amocas.bAtomic compare-and-swap byteRV32 and RV64
amocas.dAtomic compare-and-swap doublewordRV32 and RV64
amocas.hAtomic compare-and-swap halfwordRV32 and RV64
amocas.qAtomic compare-and-swap quadwordRV64 only
amocas.wAtomic compare-and-swap wordRV32 and RV64