Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix CompareAndSwapOp when useLSE is enabled.
  • Loading branch information
zhongweiy committed Jun 20, 2018
commit af8e8b56b93e14bcdb808f2ca8079e9256879af1
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void emitCode(CompilationResultBuilder crb, AArch64MacroAssembler masm) {
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
Expand Down