AMOXOR.D
Atomic XOR Doubleword
AMOXOR.D rd, rs2, (rs1)
Atomically performs bitwise XOR on a 64-bit doubleword in memory.
Details
AMOXOR.D atomically loads a doubleword, XORs with rs2, and stores the result back (RV64 only).
Pseudocode Operation
temp = M[R[rs1]]; M[R[rs1]] = temp ^ R[rs2]; R[rd] = temp;
Example
AMOXOR.D x10, x11, (x12)
Encoding
Binary Layout
00100
31:27
aq
26
rl
25
rs2
24:20
rs1
19:15
011
14:12
rd
11:7
0101111
6:0
Operands
-
rd
Dest (Old Value) -
rs2
Operand -
rs1
Address