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

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

Issue 242983006: Adds load/store from signed unscaled 9-bit offset w/ no writeback. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/assembler_arm64.cc ('k') | runtime/vm/disassembler_arm64.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_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 ASSEMBLER_TEST_RUN(SimpleLoadStore, test) { 297 ASSEMBLER_TEST_RUN(SimpleLoadStore, test) {
298 typedef int (*SimpleCode)(); 298 typedef int (*SimpleCode)();
299 EXPECT_EQ(42, EXECUTE_TEST_CODE_INT64(SimpleCode, test->entry())); 299 EXPECT_EQ(42, EXECUTE_TEST_CODE_INT64(SimpleCode, test->entry()));
300 } 300 }
301 301
302 302
303 ASSEMBLER_TEST_GENERATE(SimpleLoadStoreHeapTag, assembler) { 303 ASSEMBLER_TEST_GENERATE(SimpleLoadStoreHeapTag, assembler) {
304 __ movz(R0, 43, 0); 304 __ movz(R0, 43, 0);
305 __ movz(R1, 42, 0); 305 __ movz(R1, 42, 0);
306 __ add(R2, SP, Operand(1)); 306 __ add(R2, SP, Operand(1));
307 __ str(R1, Address(R2, -1, Address::PreIndex)); 307 __ str(R1, Address(R2, -1));
308 __ ldr(R0, Address(R2, -1, Address::PostIndex)); 308 __ ldr(R0, Address(R2, -1));
309 __ ret(); 309 __ ret();
310 } 310 }
311 311
312 312
313 ASSEMBLER_TEST_RUN(SimpleLoadStoreHeapTag, test) { 313 ASSEMBLER_TEST_RUN(SimpleLoadStoreHeapTag, test) {
314 typedef int (*SimpleCode)(); 314 typedef int (*SimpleCode)();
315 EXPECT_EQ(42, EXECUTE_TEST_CODE_INT64(SimpleCode, test->entry())); 315 EXPECT_EQ(42, EXECUTE_TEST_CODE_INT64(SimpleCode, test->entry()));
316 } 316 }
317 317
318 318
(...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after
1281 1281
1282 ASSEMBLER_TEST_RUN(LoadObjectFalse, test) { 1282 ASSEMBLER_TEST_RUN(LoadObjectFalse, test) {
1283 typedef int (*SimpleCode)(); 1283 typedef int (*SimpleCode)();
1284 EXPECT_EQ(reinterpret_cast<int64_t>(Bool::False().raw()), 1284 EXPECT_EQ(reinterpret_cast<int64_t>(Bool::False().raw()),
1285 EXECUTE_TEST_CODE_INT64(SimpleCode, test->entry())); 1285 EXECUTE_TEST_CODE_INT64(SimpleCode, test->entry()));
1286 } 1286 }
1287 1287
1288 } // namespace dart 1288 } // namespace dart
1289 1289
1290 #endif // defined(TARGET_ARCH_ARM64) 1290 #endif // defined(TARGET_ARCH_ARM64)
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm64.cc ('k') | runtime/vm/disassembler_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698