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

Unified Diff: test/cctest/test-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: test/cctest/test-disasm-arm64.cc
diff --git a/test/cctest/test-disasm-arm64.cc b/test/cctest/test-disasm-arm64.cc
index d03350c5f522115aca0c44bd989bf352c58f2fce..58570d9c902d2c4868228d38afe75de89c75926e 100644
--- a/test/cctest/test-disasm-arm64.cc
+++ b/test/cctest/test-disasm-arm64.cc
@@ -1276,6 +1276,19 @@ TEST_(load_store_acquire_release) {
COMPARE(stlxrb(w21, w22, x23), "stlxrb w21, w22, [x23]");
COMPARE(stlxrh(w24, w25, x26), "stlxrh w24, w25, [x26]");
+ COMPARE(ldarb(wzr, csp), "ldarb wzr, [csp]");
+ COMPARE(ldarh(wzr, csp), "ldarh wzr, [csp]");
+ COMPARE(ldar(wzr, csp), "ldar wzr, [csp]");
+ COMPARE(stlrb(wzr, csp), "stlrb wzr, [csp]");
+ COMPARE(stlrh(wzr, csp), "stlrh wzr, [csp]");
+ COMPARE(stlr(wzr, csp), "stlr wzr, [csp]");
+ COMPARE(ldaxrb(wzr, csp), "ldaxrb wzr, [csp]");
+ COMPARE(ldaxrh(wzr, csp), "ldaxrh wzr, [csp]");
+ COMPARE(ldaxr(wzr, csp), "ldaxr wzr, [csp]");
+ COMPARE(stlxrb(wzr, wzr, csp), "stlxrb wzr, wzr, [csp]");
+ COMPARE(stlxrh(wzr, wzr, csp), "stlxrh wzr, wzr, [csp]");
+ COMPARE(stlxr(wzr, wzr, csp), "stlxr wzr, wzr, [csp]");
+
CLEANUP();
}

Powered by Google App Engine
This is Rietveld 408576698