| OLD | NEW |
| 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 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1007 #if defined(USING_SIMULATOR) | 1007 #if defined(USING_SIMULATOR) |
| 1008 HostCPUFeatures::set_arm_version(version); | 1008 HostCPUFeatures::set_arm_version(version); |
| 1009 #endif | 1009 #endif |
| 1010 } | 1010 } |
| 1011 | 1011 |
| 1012 | 1012 |
| 1013 ASSEMBLER_TEST_RUN(MultiplyAccumAccum32To64, test) { | 1013 ASSEMBLER_TEST_RUN(MultiplyAccumAccum32To64, test) { |
| 1014 EXPECT(test != NULL); | 1014 EXPECT(test != NULL); |
| 1015 typedef int64_t (*MultiplyAccumAccum32To64) | 1015 typedef int64_t (*MultiplyAccumAccum32To64) |
| 1016 (int64_t operand0, int64_t operand1) DART_UNUSED; | 1016 (int64_t operand0, int64_t operand1) DART_UNUSED; |
| 1017 EXPECT_EQ((3LL << 32) + 7 + 5 * 11, | 1017 EXPECT_EQ(3 + 7 + 5 * 11, |
| 1018 EXECUTE_TEST_CODE_INT64_LL(MultiplyAccumAccum32To64, test->entry(), | 1018 EXECUTE_TEST_CODE_INT64_LL(MultiplyAccumAccum32To64, test->entry(), |
| 1019 (3LL << 32) + 7, (5LL << 32) + 11)); | 1019 (3LL << 32) + 7, (5LL << 32) + 11)); |
| 1020 } | 1020 } |
| 1021 | 1021 |
| 1022 | 1022 |
| 1023 ASSEMBLER_TEST_GENERATE(Clz, assembler) { | 1023 ASSEMBLER_TEST_GENERATE(Clz, assembler) { |
| 1024 Label error; | 1024 Label error; |
| 1025 | 1025 |
| 1026 __ mov(R0, Operand(0)); | 1026 __ mov(R0, Operand(0)); |
| 1027 __ clz(R1, R0); | 1027 __ clz(R1, R0); |
| (...skipping 3183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4211 __ StoreIntoObject(R2, | 4211 __ StoreIntoObject(R2, |
| 4212 FieldAddress(R2, GrowableObjectArray::data_offset()), | 4212 FieldAddress(R2, GrowableObjectArray::data_offset()), |
| 4213 R1); | 4213 R1); |
| 4214 __ PopList((1 << CTX) | (1 << LR)); | 4214 __ PopList((1 << CTX) | (1 << LR)); |
| 4215 __ Ret(); | 4215 __ Ret(); |
| 4216 } | 4216 } |
| 4217 | 4217 |
| 4218 } // namespace dart | 4218 } // namespace dart |
| 4219 | 4219 |
| 4220 #endif // defined TARGET_ARCH_ARM | 4220 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |