Index: test/cctest/test-disasm-arm.cc |
diff --git a/test/cctest/test-disasm-arm.cc b/test/cctest/test-disasm-arm.cc |
index 40745f9ad9e4778c305531cb91b2d291351d510b..d5f594962c1822846a1a2fb1de07016f5bfa2963 100644 |
--- a/test/cctest/test-disasm-arm.cc |
+++ b/test/cctest/test-disasm-arm.cc |
@@ -1171,3 +1171,17 @@ TEST(Barrier) { |
VERIFY_RUN(); |
} |
+ |
+ |
+TEST(LoadStoreExclusive) { |
+ SET_UP(); |
+ |
+ COMPARE(ldrexb(r0, r1), "e1d10f9f ldrexb r0, [r1]"); |
+ COMPARE(strexb(r0, r1, r2), "e1c20f91 strexb r0, r1, [r2]"); |
+ COMPARE(ldrexh(r0, r1), "e1f10f9f ldrexh r0, [r1]"); |
+ COMPARE(strexh(r0, r1, r2), "e1e20f91 strexh r0, r1, [r2]"); |
+ COMPARE(ldrex(r0, r1), "e1910f9f ldrex r0, [r1]"); |
+ COMPARE(strex(r0, r1, r2), "e1820f91 strex r0, r1, [r2]"); |
+ |
+ VERIFY_RUN(); |
+} |