VAMOADDW.V
Vector Atomic Add Word
VAMOADDW.V vd, (rs1), vs2, vm
Atomically adds elements from vs2 to memory addresses in rs1 (indexed by vs2? No, rs1 is base, vs2 is index).
Encoding
Binary Layout
00000
31:26
wd
25:21
vm
20
vs2
19:15
rs1
14:12
110
11:7
vd
6:0
0101111
Operands
-
vd
Dest (Old Val) -
rs1
Base -
vs2
Index
Example
VAMOADDW.V v1, a0, v4, v0.t
Related
More in Zvamo (draft)
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
Vector Atomic Add Word: Atomically adds elements from vs2 to memory addresses in rs1 (indexed by vs2? No, rs1 is base, vs2 is index). Operation: AtomicAdd(rs1 + vs2[i], vd[i]);.
Operation
AtomicAdd(rs1 + vs2[i], vd[i]);