| 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/simulator.h" | 9 #include "vm/simulator.h" |
| 10 #include "vm/runtime_entry.h" | 10 #include "vm/runtime_entry.h" |
| (...skipping 1335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1346 EmitSIMDqqq(B24 | B23 | B21 | B20 | B19 | B17 | B16 | B10 | B8, kSWord, | 1346 EmitSIMDqqq(B24 | B23 | B21 | B20 | B19 | B17 | B16 | B10 | B8, kSWord, |
| 1347 qd, Q0, qm); | 1347 qd, Q0, qm); |
| 1348 } | 1348 } |
| 1349 | 1349 |
| 1350 | 1350 |
| 1351 void Assembler::vrecpsqs(QRegister qd, QRegister qn, QRegister qm) { | 1351 void Assembler::vrecpsqs(QRegister qd, QRegister qn, QRegister qm) { |
| 1352 EmitSIMDqqq(B11 | B10 | B9 | B8 | B4, kSWord, qd, qn, qm); | 1352 EmitSIMDqqq(B11 | B10 | B9 | B8 | B4, kSWord, qd, qn, qm); |
| 1353 } | 1353 } |
| 1354 | 1354 |
| 1355 | 1355 |
| 1356 void Assembler::vrsqrteqs(QRegister qd, QRegister qm) { |
| 1357 EmitSIMDqqq(B24 | B23 | B21 | B20 | B19 | B17 | B16 | B10 | B8 | B7, |
| 1358 kSWord, qd, Q0, qm); |
| 1359 } |
| 1360 |
| 1361 |
| 1362 void Assembler::vrsqrtsqs(QRegister qd, QRegister qn, QRegister qm) { |
| 1363 EmitSIMDqqq(B21 | B11 | B10 | B9 | B8 | B4, kSWord, qd, qn, qm); |
| 1364 } |
| 1365 |
| 1366 |
| 1356 void Assembler::vdup(OperandSize sz, QRegister qd, DRegister dm, int idx) { | 1367 void Assembler::vdup(OperandSize sz, QRegister qd, DRegister dm, int idx) { |
| 1357 ASSERT((sz != kDWord) && (sz != kSWord) && (sz != kWordPair)); | 1368 ASSERT((sz != kDWord) && (sz != kSWord) && (sz != kWordPair)); |
| 1358 int code = 0; | 1369 int code = 0; |
| 1359 | 1370 |
| 1360 switch (sz) { | 1371 switch (sz) { |
| 1361 case kByte: | 1372 case kByte: |
| 1362 case kUnsignedByte: { | 1373 case kUnsignedByte: { |
| 1363 ASSERT((idx >= 0) && (idx < 8)); | 1374 ASSERT((idx >= 0) && (idx < 8)); |
| 1364 code = 1 | (idx << 1); | 1375 code = 1 | (idx << 1); |
| 1365 break; | 1376 break; |
| (...skipping 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2494 | 2505 |
| 2495 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 2506 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
| 2496 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); | 2507 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); |
| 2497 return fpu_reg_names[reg]; | 2508 return fpu_reg_names[reg]; |
| 2498 } | 2509 } |
| 2499 | 2510 |
| 2500 } // namespace dart | 2511 } // namespace dart |
| 2501 | 2512 |
| 2502 #endif // defined TARGET_ARCH_ARM | 2513 #endif // defined TARGET_ARCH_ARM |
| 2503 | 2514 |
| OLD | NEW |