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

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

Issue 886173003: VM: Align implementations of assembler constant pools. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 EXPECT(test != NULL); 55 EXPECT(test != NULL);
56 typedef int (*MoveRotImm)() DART_UNUSED; 56 typedef int (*MoveRotImm)() DART_UNUSED;
57 EXPECT_EQ(0x30550003, EXECUTE_TEST_CODE_INT32(MoveRotImm, test->entry())); 57 EXPECT_EQ(0x30550003, EXECUTE_TEST_CODE_INT32(MoveRotImm, test->entry()));
58 } 58 }
59 59
60 60
61 ASSEMBLER_TEST_GENERATE(MovImm16, assembler) { 61 ASSEMBLER_TEST_GENERATE(MovImm16, assembler) {
62 #if defined(USING_SIMULATOR) 62 #if defined(USING_SIMULATOR)
63 // ARMv7 is the default. 63 // ARMv7 is the default.
64 HostCPUFeatures::set_arm_version(ARMv6); 64 HostCPUFeatures::set_arm_version(ARMv6);
65 __ LoadDecodableImmediate(R0, 0x12345678 << 1); 65 __ LoadPatchableImmediate(R0, 0x12345678 << 1);
66 HostCPUFeatures::set_arm_version(ARMv7); 66 HostCPUFeatures::set_arm_version(ARMv7);
67 __ LoadDecodableImmediate(R1, 0x12345678); 67 __ LoadPatchableImmediate(R1, 0x12345678);
68 __ sub(R0, R0, Operand(R1)); 68 __ sub(R0, R0, Operand(R1));
69 __ bx(LR); 69 __ bx(LR);
70 #else 70 #else
71 __ LoadDecodableImmediate(R0, 0x12345678); 71 __ LoadPatchableImmediate(R0, 0x12345678);
72 __ bx(LR); 72 __ bx(LR);
73 #endif 73 #endif
74 } 74 }
75 75
76 76
77 ASSEMBLER_TEST_RUN(MovImm16, test) { 77 ASSEMBLER_TEST_RUN(MovImm16, test) {
78 EXPECT(test != NULL); 78 EXPECT(test != NULL);
79 typedef int (*MovImm16)() DART_UNUSED; 79 typedef int (*MovImm16)() DART_UNUSED;
80 EXPECT_EQ(0x12345678, EXECUTE_TEST_CODE_INT32(MovImm16, test->entry())); 80 EXPECT_EQ(0x12345678, EXECUTE_TEST_CODE_INT32(MovImm16, test->entry()));
81 } 81 }
(...skipping 4182 matching lines...) Expand 10 before | Expand all | Expand 10 after
4264 4264
4265 EXPECT_EQ(-1, RANGE_OF(Bool::True().raw())); 4265 EXPECT_EQ(-1, RANGE_OF(Bool::True().raw()));
4266 4266
4267 #undef RANGE_OF 4267 #undef RANGE_OF
4268 } 4268 }
4269 4269
4270 4270
4271 } // namespace dart 4271 } // namespace dart
4272 4272
4273 #endif // defined TARGET_ARCH_ARM 4273 #endif // defined TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698