diff --git a/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir.aarch64/src/org/graalvm/compiler/lir/aarch64/AArch64AtomicMove.java b/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir.aarch64/src/org/graalvm/compiler/lir/aarch64/AArch64AtomicMove.java index 1ccd0d3404ffa47ea7d51009cd1d73cb4d2efc44..1a51601a998e38c00c0aefc07dd59dc87e87cc81 100644 --- a/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir.aarch64/src/org/graalvm/compiler/lir/aarch64/AArch64AtomicMove.java +++ b/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir.aarch64/src/org/graalvm/compiler/lir/aarch64/AArch64AtomicMove.java @@ -83,7 +83,7 @@ public class AArch64AtomicMove { if (AArch64LIRFlagsVersioned.useLSE(masm.target.arch)) { Register expected = asRegister(expectedValue); masm.mov(size, result, expected); - masm.cas(size, expected, newVal, address, true /* acquire */, true /* release */); + masm.cas(size, result, newVal, address, true /* acquire */, true /* release */); AArch64Compare.gpCompare(masm, resultValue, expectedValue); } else { // We could avoid using a scratch register here, by reusing resultValue for the