Zabha instructions
Byte and Halfword Atomic Memory Operations
Adds byte and halfword atomic memory operations to the RISC-V Unprivileged ISA.
Extension description from riscv-unified-db, reformatted.
Specification chapter: The RISC-V Instruction Set Manual, src/unpriv/zabha.adoc.
Instructions (20)
| Mnemonic | Name (riscv-unified-db) | XLEN |
|---|---|---|
amoadd.b | Atomic fetch-and-add byte | RV32 and RV64 |
amoadd.h | Atomic fetch-and-add halfword | RV32 and RV64 |
amoand.b | Atomic fetch-and-and byte | RV32 and RV64 |
amoand.h | Atomic fetch-and-and halfword | RV32 and RV64 |
amocas.b | Atomic compare-and-swap byte | RV32 and RV64 |
amocas.h | Atomic compare-and-swap halfword | RV32 and RV64 |
amomax.b | Atomic MAX byte | RV32 and RV64 |
amomax.h | Atomic MAX halfword | RV32 and RV64 |
amomaxu.b | Atomic MAX unsigned byte | RV32 and RV64 |
amomaxu.h | Atomic MAX unsigned halfword | RV32 and RV64 |
amomin.b | Atomic MIN byte | RV32 and RV64 |
amomin.h | Atomic MIN halfword | RV32 and RV64 |
amominu.b | Atomic MIN unsigned byte | RV32 and RV64 |
amominu.h | Atomic MIN unsigned halfword | RV32 and RV64 |
amoor.b | Atomic fetch-and-or byte | RV32 and RV64 |
amoor.h | Atomic fetch-and-or halfword | RV32 and RV64 |
amoswap.b | Atomic SWAP byte | RV32 and RV64 |
amoswap.h | Atomic SWAP halfword | RV32 and RV64 |
amoxor.b | Atomic fetch-and-xor byte | RV32 and RV64 |
amoxor.h | Atomic fetch-and-xor halfword | RV32 and RV64 |