AMOMAXU.D
Atomic Max Unsigned Doubleword
AMOMAXU.D rd, rs2, (rs1)
Atomically updates memory with the maximum of the memory value and register value (Unsigned 64-bit).
Details
AMOMAXU.D performs an atomic unsigned maximum doubleword operation (RV64 only).
Pseudocode Operation
temp = M[R[rs1]]; M[R[rs1]] = max_u(temp, R[rs2]); R[rd] = temp;
Example
AMOMAXU.D t0, a1, a0
Encoding
Binary Layout
11100
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