提交 34a72ec3 编写于 作者: Z zyao

8206975: AArch64: Fix CompareAndSwapOp when useLSE is enabled in Graal

Reviewed-by: adinn, aph
上级 6951a755
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册