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

Unified Diff: test/cctest/test-disasm-arm.cc

Issue 12367002: ARM backend support for pld (preload data) instruction Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 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
« no previous file with comments | « test/cctest/test-assembler-arm.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-disasm-arm.cc
===================================================================
--- test/cctest/test-disasm-arm.cc (revision 13713)
+++ test/cctest/test-disasm-arm.cc (working copy)
@@ -863,3 +863,26 @@
VERIFY_RUN();
}
+
+
+TEST(Preload) {
+ SET_UP();
+
+ COMPARE(pld(MemOperand(r1)),
+ "f5d1f000 pld [r1, #+0]");
+ COMPARE(pld(MemOperand(r2, 4)),
+ "f5d2f004 pld [r2, #+4]");
+ COMPARE(pld(MemOperand(r3, -8)),
+ "f553f008 pld [r3, #-8]");
+ COMPARE(pld(MemOperand(r1, r2)),
+ "f7d1f002 pld [r1, +r2]");
+ COMPARE(pld(MemOperand(r4, r5, NegOffset)),
+ "f754f005 pld [r4, -r5]");
+ COMPARE(pld(MemOperand(r1, r2, ASR, 2)),
+ "f7d1f142 pld [r1, +r2, asr #2]");
+ COMPARE(pld(MemOperand(r3, r4, LSL, 8, NegOffset)),
+ "f753f404 pld [r3, -r4, lsl #8]");
+
+ VERIFY_RUN();
+}
+
« no previous file with comments | « test/cctest/test-assembler-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698