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

Side by Side Diff: runtime/vm/assembler_arm_test.cc

Issue 1407393006: Make arm assembler explicitly take both registers for load/store-pair. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/assembler_arm.cc ('k') | runtime/vm/intrinsifier_arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/globals.h" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/cpu.h" 9 #include "vm/cpu.h"
10 #include "vm/os.h" 10 #include "vm/os.h"
(...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 ASSEMBLER_TEST_RUN(Ldrh1, test) { 1143 ASSEMBLER_TEST_RUN(Ldrh1, test) {
1144 EXPECT(test != NULL); 1144 EXPECT(test != NULL);
1145 typedef int (*Tst)() DART_UNUSED; 1145 typedef int (*Tst)() DART_UNUSED;
1146 EXPECT_EQ(0xff, EXECUTE_TEST_CODE_INT32(Tst, test->entry())); 1146 EXPECT_EQ(0xff, EXECUTE_TEST_CODE_INT32(Tst, test->entry()));
1147 } 1147 }
1148 1148
1149 1149
1150 ASSEMBLER_TEST_GENERATE(Ldrd, assembler) { 1150 ASSEMBLER_TEST_GENERATE(Ldrd, assembler) {
1151 __ mov(IP, Operand(SP)); 1151 __ mov(IP, Operand(SP));
1152 __ sub(SP, SP, Operand(kWordSize*30)); 1152 __ sub(SP, SP, Operand(kWordSize*30));
1153 __ strd(R2, SP, 0); 1153 __ strd(R2, R3, SP, 0);
1154 __ strd(R0, IP, (-kWordSize*28)); 1154 __ strd(R0, R1, IP, (-kWordSize*28));
1155 __ ldrd(R2, IP, (-kWordSize*28)); 1155 __ ldrd(R2, R3, IP, (-kWordSize*28));
1156 __ ldrd(R0, SP, 0); 1156 __ ldrd(R0, R1, SP, 0);
1157 __ add(SP, SP, Operand(kWordSize*30)); 1157 __ add(SP, SP, Operand(kWordSize*30));
1158 __ sub(R0, R0, Operand(R2)); 1158 __ sub(R0, R0, Operand(R2));
1159 __ add(R1, R1, Operand(R3)); 1159 __ add(R1, R1, Operand(R3));
1160 __ bx(LR); 1160 __ bx(LR);
1161 } 1161 }
1162 1162
1163 1163
1164 ASSEMBLER_TEST_RUN(Ldrd, test) { 1164 ASSEMBLER_TEST_RUN(Ldrd, test) {
1165 EXPECT(test != NULL); 1165 EXPECT(test != NULL);
1166 typedef int64_t (*Tst)(int64_t r0r1, int64_t r2r3) DART_UNUSED; 1166 typedef int64_t (*Tst)(int64_t r0r1, int64_t r2r3) DART_UNUSED;
(...skipping 2822 matching lines...) Expand 10 before | Expand all | Expand 10 after
3989 EXPECT_EQ(ICData::kInt64RangeBit, RANGE_OF(Integer::New(kMinInt64))); 3989 EXPECT_EQ(ICData::kInt64RangeBit, RANGE_OF(Integer::New(kMinInt64)));
3990 3990
3991 EXPECT_EQ(-1, RANGE_OF(Bool::True().raw())); 3991 EXPECT_EQ(-1, RANGE_OF(Bool::True().raw()));
3992 3992
3993 #undef RANGE_OF 3993 #undef RANGE_OF
3994 } 3994 }
3995 3995
3996 } // namespace dart 3996 } // namespace dart
3997 3997
3998 #endif // defined TARGET_ARCH_ARM 3998 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm.cc ('k') | runtime/vm/intrinsifier_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698