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

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

Issue 616873003: Use UnboxedInt32 and UnboxedUint32 representation for LoadIndexedInstr (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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_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
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
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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698