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

Unified Diff: runtime/vm/assembler_arm_test.cc

Issue 183803024: Adds support for ARMv6. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | « runtime/vm/assembler_arm.cc ('k') | runtime/vm/code_patcher_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_arm_test.cc
===================================================================
--- runtime/vm/assembler_arm_test.cc (revision 33437)
+++ runtime/vm/assembler_arm_test.cc (working copy)
@@ -59,9 +59,18 @@
ASSEMBLER_TEST_GENERATE(MovImm16, assembler) {
- __ movw(R0, 0x5678);
- __ movt(R0, 0x1234);
+#if defined(USING_SIMULATOR)
+ // ARMv7 is the default.
+ HostCPUFeatures::set_arm_version(ARMv6);
+ __ LoadDecodableImmediate(R0, 0x12345678 << 1);
+ HostCPUFeatures::set_arm_version(ARMv7);
+ __ LoadDecodableImmediate(R1, 0x12345678);
+ __ sub(R0, R0, ShifterOperand(R1));
__ bx(LR);
+#else
+ __ LoadDecodableImmediate(R0, 0x12345678);
+ __ bx(LR);
+#endif
}
« no previous file with comments | « runtime/vm/assembler_arm.cc ('k') | runtime/vm/code_patcher_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698