Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Unified Diff: src/arm64/disasm-arm64.cc

Issue 2760963002: [arm64] Use acquire/release memory accesses for atomics (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/arm64/disasm-arm64.cc
diff --git a/src/arm64/disasm-arm64.cc b/src/arm64/disasm-arm64.cc
index 8e022b1690f6e1efe86b344ee4e654e37aeeea8e..e3ef4595d87fa2bbfc7c49a63b08749f96dfdb31 100644
--- a/src/arm64/disasm-arm64.cc
+++ b/src/arm64/disasm-arm64.cc
@@ -916,10 +916,10 @@ void DisassemblingDecoder::VisitLoadStorePairOffset(Instruction* instr) {
void DisassemblingDecoder::VisitLoadStoreAcquireRelease(Instruction *instr) {
const char *mnemonic = "unimplemented";
- const char *form = "'Wt, ['Xn]";
- const char *form_x = "'Xt, ['Xn]";
- const char *form_stlx = "'Ws, 'Wt, ['Xn]";
- const char *form_stlx_x = "'Ws, 'Xt, ['Xn]";
+ const char* form = "'Wt, ['Xns]";
+ const char* form_x = "'Xt, ['Xns]";
+ const char* form_stlx = "'Ws, 'Wt, ['Xns]";
+ const char* form_stlx_x = "'Ws, 'Xt, ['Xns]";
switch (instr->Mask(LoadStoreAcquireReleaseMask)) {
case LDAXR_b: mnemonic = "ldaxrb"; break;
@@ -938,7 +938,8 @@ void DisassemblingDecoder::VisitLoadStoreAcquireRelease(Instruction *instr) {
case STLXR_b: mnemonic = "stlxrb"; form = form_stlx; break;
case STLXR_w: mnemonic = "stlxr"; form = form_stlx; break;
case STLXR_x: mnemonic = "stlxr"; form = form_stlx_x; break;
- default: form = "(LoadStoreAcquireReleaseMask)";
+ default:
+ form = "(LoadStoreAcquireRelease)";
}
Format(instr, mnemonic, form);
}

Powered by Google App Engine
This is Rietveld 408576698