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
000001
31:26
00000
25:21
vm
20
rs1
19:15
110
14:12
vd
11:7
0101111
6:0
 
Format VAMO
Opcode 0x0000602F
Extension Zvamo (draft)

Operands

  • vd
    Dest (Old Val)
  • rs1
    Base
  • vs2
    Index

Example

VAMOADDW.V v1, a0, v4, v0.t

Related

More in Zvamo (draft)

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]);