| 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_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 1679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1690 __ ret(); | 1690 __ ret(); |
| 1691 } | 1691 } |
| 1692 | 1692 |
| 1693 | 1693 |
| 1694 ASSEMBLER_TEST_RUN(Scvtfd, test) { | 1694 ASSEMBLER_TEST_RUN(Scvtfd, test) { |
| 1695 typedef double (*DoubleReturn)() DART_UNUSED; | 1695 typedef double (*DoubleReturn)() DART_UNUSED; |
| 1696 EXPECT_EQ(42.0, EXECUTE_TEST_CODE_DOUBLE(DoubleReturn, test->entry())); | 1696 EXPECT_EQ(42.0, EXECUTE_TEST_CODE_DOUBLE(DoubleReturn, test->entry())); |
| 1697 } | 1697 } |
| 1698 | 1698 |
| 1699 | 1699 |
| 1700 ASSEMBLER_TEST_GENERATE(Scvtfd32, assembler) { |
| 1701 // Fill upper 32-bits with garbage. |
| 1702 __ LoadImmediate(R0, 0x111111110000002A, kNoPP); |
| 1703 __ scvtfd32(V0, R0); |
| 1704 __ ret(); |
| 1705 } |
| 1706 |
| 1707 |
| 1708 ASSEMBLER_TEST_RUN(Scvtfd32, test) { |
| 1709 typedef double (*DoubleReturn)() DART_UNUSED; |
| 1710 EXPECT_EQ(42.0, EXECUTE_TEST_CODE_DOUBLE(DoubleReturn, test->entry())); |
| 1711 } |
| 1712 |
| 1713 |
| 1700 ASSEMBLER_TEST_GENERATE(FabsdPos, assembler) { | 1714 ASSEMBLER_TEST_GENERATE(FabsdPos, assembler) { |
| 1701 __ LoadDImmediate(V1, 42.0, kNoPP); | 1715 __ LoadDImmediate(V1, 42.0, kNoPP); |
| 1702 __ fabsd(V0, V1); | 1716 __ fabsd(V0, V1); |
| 1703 __ ret(); | 1717 __ ret(); |
| 1704 } | 1718 } |
| 1705 | 1719 |
| 1706 | 1720 |
| 1707 ASSEMBLER_TEST_RUN(FabsdPos, test) { | 1721 ASSEMBLER_TEST_RUN(FabsdPos, test) { |
| 1708 typedef double (*DoubleReturn)() DART_UNUSED; | 1722 typedef double (*DoubleReturn)() DART_UNUSED; |
| 1709 EXPECT_EQ(42.0, EXECUTE_TEST_CODE_DOUBLE(DoubleReturn, test->entry())); | 1723 EXPECT_EQ(42.0, EXECUTE_TEST_CODE_DOUBLE(DoubleReturn, test->entry())); |
| (...skipping 1562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3272 __ Pop(LR); | 3286 __ Pop(LR); |
| 3273 __ Pop(CTX); | 3287 __ Pop(CTX); |
| 3274 __ PopAndUntagPP(); | 3288 __ PopAndUntagPP(); |
| 3275 __ mov(CSP, SP); | 3289 __ mov(CSP, SP); |
| 3276 __ ret(); | 3290 __ ret(); |
| 3277 } | 3291 } |
| 3278 | 3292 |
| 3279 } // namespace dart | 3293 } // namespace dart |
| 3280 | 3294 |
| 3281 #endif // defined(TARGET_ARCH_ARM64) | 3295 #endif // defined(TARGET_ARCH_ARM64) |
| OLD | NEW |