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

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

Issue 2124022: Update and improve support for ARMv7 bitfield instructions.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 7 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 4740)
+++ test/cctest/test-disasm-arm.cc (working copy)
@@ -289,3 +289,49 @@
VERIFY_RUN();
}
+
+
+TEST(Type3) {
+ SETUP();
+
+ if (CpuFeatures::IsSupported(ARMv7)) {
+ COMPARE(ubfx(r0, r1, 5, 10),
+ "e7e902d1 ubfx r0, r1, #5, #10");
+ COMPARE(ubfx(r1, r0, 5, 10),
+ "e7e912d0 ubfx r1, r0, #5, #10");
+ COMPARE(ubfx(r0, r1, 31, 1),
+ "e7e00fd1 ubfx r0, r1, #31, #1");
+ COMPARE(ubfx(r1, r0, 31, 1),
+ "e7e01fd0 ubfx r1, r0, #31, #1");
+
+ COMPARE(sbfx(r0, r1, 5, 10),
+ "e7a902d1 sbfx r0, r1, #5, #10");
+ COMPARE(sbfx(r1, r0, 5, 10),
+ "e7a912d0 sbfx r1, r0, #5, #10");
+ COMPARE(sbfx(r0, r1, 31, 1),
+ "e7a00fd1 sbfx r0, r1, #31, #1");
+ COMPARE(sbfx(r1, r0, 31, 1),
+ "e7a01fd0 sbfx r1, r0, #31, #1");
+
+ COMPARE(bfc(r0, 5, 10),
+ "e7ce029f bfc r0, #5, #10");
+ COMPARE(bfc(r1, 5, 10),
+ "e7ce129f bfc r1, #5, #10");
+ COMPARE(bfc(r0, 31, 1),
+ "e7df0f9f bfc r0, #31, #1");
+ COMPARE(bfc(r1, 31, 1),
+ "e7df1f9f bfc r1, #31, #1");
+
+ COMPARE(bfi(r0, r1, 5, 10),
+ "e7ce0291 bfi r0, r1, #5, #10");
+ COMPARE(bfi(r1, r0, 5, 10),
+ "e7ce1290 bfi r1, r0, #5, #10");
+ COMPARE(bfi(r0, r1, 31, 1),
+ "e7df0f91 bfi r0, r1, #31, #1");
+ COMPARE(bfi(r1, r0, 31, 1),
+ "e7df1f90 bfi r1, r0, #31, #1");
+ }
+
+ 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