Atomic or : Set t1 to the double word at the address in t3, and store the bitwise OR of that value and t2 there. Sets a bit mask in shared memory (64bit)
amoor.d
Operands
reg, reg, (reg)Variants
- Atomic or : Set t1 to the double word at the address in t3, and store the bitwise OR of that value and t2 there. Sets a bit mask in shared memory (64bit) amoor.d t1, t2, (t3)
This example runs on RV64.
# value is initialized and naturally aligned for this operation.
.data
value: .dword 0x0000000012345678
.text
la t0, value
# Atomic operation returns the old value 305419896 in t2, then changes value to 305419901.
li t1, 5
amoor.d t2, t1, (t0)