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/os.h" | 9 #include "vm/os.h" |
10 #include "vm/unit_test.h" | 10 #include "vm/unit_test.h" |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 __ vcmpd(D0, D0); | 232 __ vcmpd(D0, D0); |
233 __ vmstat(); | 233 __ vmstat(); |
234 __ mov(R0, ShifterOperand(1), VS); | 234 __ mov(R0, ShifterOperand(1), VS); |
235 __ mov(R0, ShifterOperand(0), VC); | 235 __ mov(R0, ShifterOperand(0), VC); |
236 __ Ret(); | 236 __ Ret(); |
237 } | 237 } |
238 | 238 |
239 | 239 |
240 ASSEMBLER_TEST_RUN(DoubleSqrtNeg, test) { | 240 ASSEMBLER_TEST_RUN(DoubleSqrtNeg, test) { |
241 EXPECT(test != NULL); | 241 EXPECT(test != NULL); |
242 typedef double (*DoubleFPOperations)(); | 242 typedef int (*DoubleSqrtNeg)(); |
243 EXPECT_EQ(1, EXECUTE_TEST_CODE_INT32(DoubleFPOperations, test->entry())); | 243 EXPECT_EQ(1, EXECUTE_TEST_CODE_INT32(DoubleSqrtNeg, test->entry())); |
244 } | 244 } |
245 | 245 |
246 | 246 |
247 ASSEMBLER_TEST_GENERATE(IntToDoubleConversion, assembler) { | 247 ASSEMBLER_TEST_GENERATE(IntToDoubleConversion, assembler) { |
248 __ mov(R3, ShifterOperand(6)); | 248 __ mov(R3, ShifterOperand(6)); |
249 __ vmovsr(S3, R3); | 249 __ vmovsr(S3, R3); |
250 __ vcvtdi(D1, S3); | 250 __ vcvtdi(D1, S3); |
251 __ vmovrrd(R0, R1, D1); | 251 __ vmovrrd(R0, R1, D1); |
252 __ bx(LR); | 252 __ bx(LR); |
253 } | 253 } |
(...skipping 1312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1566 __ StoreIntoObject(R2, | 1566 __ StoreIntoObject(R2, |
1567 FieldAddress(R2, GrowableObjectArray::data_offset()), | 1567 FieldAddress(R2, GrowableObjectArray::data_offset()), |
1568 R1); | 1568 R1); |
1569 __ PopList((1 << CTX) | (1 << LR)); | 1569 __ PopList((1 << CTX) | (1 << LR)); |
1570 __ Ret(); | 1570 __ Ret(); |
1571 } | 1571 } |
1572 | 1572 |
1573 } // namespace dart | 1573 } // namespace dart |
1574 | 1574 |
1575 #endif // defined TARGET_ARCH_ARM | 1575 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |