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

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

Issue 1077823002: Adds a simarmv5te build and test target. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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/tests/vm/vm.status ('k') | runtime/vm/cpu_arm.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_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 1789 matching lines...) Expand 10 before | Expand all | Expand 10 after
1800 EXPECT(test != NULL); 1800 EXPECT(test != NULL);
1801 if (TargetCPUFeatures::can_divide()) { 1801 if (TargetCPUFeatures::can_divide()) {
1802 typedef int (*Tst)() DART_UNUSED; 1802 typedef int (*Tst)() DART_UNUSED;
1803 EXPECT_EQ(3, EXECUTE_TEST_CODE_INT32(Tst, test->entry())); 1803 EXPECT_EQ(3, EXECUTE_TEST_CODE_INT32(Tst, test->entry()));
1804 } 1804 }
1805 } 1805 }
1806 1806
1807 1807
1808 ASSEMBLER_TEST_GENERATE(IntDiv_unsupported, assembler) { 1808 ASSEMBLER_TEST_GENERATE(IntDiv_unsupported, assembler) {
1809 #if defined(USING_SIMULATOR) 1809 #if defined(USING_SIMULATOR)
1810 bool orig = TargetCPUFeatures::integer_division_supported(); 1810 if (TargetCPUFeatures::can_divide()) {
1811 HostCPUFeatures::set_integer_division_supported(false); 1811 bool orig = TargetCPUFeatures::integer_division_supported();
1812 __ mov(R0, Operand(27)); 1812 HostCPUFeatures::set_integer_division_supported(false);
1813 __ mov(R1, Operand(9)); 1813 __ mov(R0, Operand(27));
1814 __ IntegerDivide(R0, R0, R1, D0, D1); 1814 __ mov(R1, Operand(9));
1815 HostCPUFeatures::set_integer_division_supported(orig); 1815 __ IntegerDivide(R0, R0, R1, D0, D1);
1816 HostCPUFeatures::set_integer_division_supported(orig);
1817 }
1816 __ bx(LR); 1818 __ bx(LR);
1817 #else 1819 #else
1818 if (TargetCPUFeatures::can_divide()) { 1820 if (TargetCPUFeatures::can_divide()) {
1819 __ mov(R0, Operand(27)); 1821 __ mov(R0, Operand(27));
1820 __ mov(R1, Operand(9)); 1822 __ mov(R1, Operand(9));
1821 __ IntegerDivide(R0, R0, R1, D0, D1); 1823 __ IntegerDivide(R0, R0, R1, D0, D1);
1822 } 1824 }
1823 __ bx(LR); 1825 __ bx(LR);
1824 #endif 1826 #endif
1825 } 1827 }
(...skipping 2161 matching lines...) Expand 10 before | Expand all | Expand 10 after
3987 EXPECT_EQ(ICData::kInt64RangeBit, RANGE_OF(Integer::New(kMinInt64))); 3989 EXPECT_EQ(ICData::kInt64RangeBit, RANGE_OF(Integer::New(kMinInt64)));
3988 3990
3989 EXPECT_EQ(-1, RANGE_OF(Bool::True().raw())); 3991 EXPECT_EQ(-1, RANGE_OF(Bool::True().raw()));
3990 3992
3991 #undef RANGE_OF 3993 #undef RANGE_OF
3992 } 3994 }
3993 3995
3994 } // namespace dart 3996 } // namespace dart
3995 3997
3996 #endif // defined TARGET_ARCH_ARM 3998 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/tests/vm/vm.status ('k') | runtime/vm/cpu_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698