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

Unified Diff: runtime/vm/assembler_arm64_test.cc

Issue 283833005: Fix bug on arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | « no previous file | runtime/vm/intermediate_language_arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_arm64_test.cc
===================================================================
--- runtime/vm/assembler_arm64_test.cc (revision 36169)
+++ runtime/vm/assembler_arm64_test.cc (working copy)
@@ -392,6 +392,21 @@
}
+ASSEMBLER_TEST_GENERATE(LoadSigned32Bit, assembler) {
+ __ LoadImmediate(R1, 0xffffffff, kNoPP);
+ __ str(R1, Address(SP, -4, Address::PreIndex, kWord), kWord);
+ __ ldr(R0, Address(SP), kWord);
+ __ ldr(R1, Address(SP, 4, Address::PostIndex, kWord), kWord);
+ __ ret();
+}
+
+
+ASSEMBLER_TEST_RUN(LoadSigned32Bit, test) {
+ typedef int (*SimpleCode)();
+ EXPECT_EQ(-1, EXECUTE_TEST_CODE_INT64(SimpleCode, test->entry()));
+}
+
+
// Logical register operations.
ASSEMBLER_TEST_GENERATE(AndRegs, assembler) {
__ movz(R1, 43, 0);
« no previous file with comments | « no previous file | runtime/vm/intermediate_language_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698