| 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/disassembler.h" | 5 #include "vm/disassembler.h" |
| 6 | 6 |
| 7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. | 7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
| 8 #if defined(TARGET_ARCH_ARM) | 8 #if defined(TARGET_ARCH_ARM) |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 | 10 |
| (...skipping 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1328 } else if ((instr->Bits(8, 4) == 1) && (instr->Bit(4) == 1) && | 1328 } else if ((instr->Bits(8, 4) == 1) && (instr->Bit(4) == 1) && |
| 1329 (instr->Bits(20, 2) == 3) && (instr->Bits(23, 2) == 0)) { | 1329 (instr->Bits(20, 2) == 3) && (instr->Bits(23, 2) == 0)) { |
| 1330 Format(instr, "vornq 'qd, 'qn, 'qm"); | 1330 Format(instr, "vornq 'qd, 'qn, 'qm"); |
| 1331 } else if ((instr->Bits(8, 4) == 1) && (instr->Bit(4) == 1) && | 1331 } else if ((instr->Bits(8, 4) == 1) && (instr->Bit(4) == 1) && |
| 1332 (instr->Bits(20, 2) == 2) && (instr->Bits(23, 2) == 0)) { | 1332 (instr->Bits(20, 2) == 2) && (instr->Bits(23, 2) == 0)) { |
| 1333 if (instr->QmField() == instr->QnField()) { | 1333 if (instr->QmField() == instr->QnField()) { |
| 1334 Format(instr, "vmovq 'qd, 'qm"); | 1334 Format(instr, "vmovq 'qd, 'qm"); |
| 1335 } else { | 1335 } else { |
| 1336 Format(instr, "vorrq 'qd, 'qm"); | 1336 Format(instr, "vorrq 'qd, 'qm"); |
| 1337 } | 1337 } |
| 1338 } else if ((instr->Bits(8, 4) == 15) && (instr->Bit(4) == 0) && |
| 1339 (instr->Bits(20, 2) == 2) && (instr->Bits(23, 2) == 0)) { |
| 1340 Format(instr, "vminqs 'qd, 'qn, 'qm"); |
| 1341 } else if ((instr->Bits(8, 4) == 15) && (instr->Bit(4) == 0) && |
| 1342 (instr->Bits(20, 2) == 0) && (instr->Bits(23, 2) == 0)) { |
| 1343 Format(instr, "vmaxqs 'qd, 'qn, 'qm"); |
| 1344 } else if ((instr->Bits(7, 5) == 10) && (instr->Bit(4) == 0) && |
| 1345 (instr->Bits(20, 2) == 3) && (instr->Bits(23, 2) == 3) && |
| 1346 (instr->Bits(16, 4) == 11)) { |
| 1347 Format(instr, "vrecpeqs 'qd, 'qm"); |
| 1348 } else if ((instr->Bits(8, 4) == 15) && (instr->Bit(4) == 1) && |
| 1349 (instr->Bits(20, 2) == 0) && (instr->Bits(23, 2) == 0)) { |
| 1350 Format(instr, "vrecpsqs 'qd, 'qn, 'qm"); |
| 1338 } else if ((instr->Bits(8, 4) == 12) && (instr->Bit(4) == 0) && | 1351 } else if ((instr->Bits(8, 4) == 12) && (instr->Bit(4) == 0) && |
| 1339 (instr->Bits(20, 2) == 3) && (instr->Bits(23, 2) == 3) && | 1352 (instr->Bits(20, 2) == 3) && (instr->Bits(23, 2) == 3) && |
| 1340 (instr->Bit(7) == 0)) { | 1353 (instr->Bit(7) == 0)) { |
| 1341 int32_t imm4 = instr->Bits(16, 4); | 1354 int32_t imm4 = instr->Bits(16, 4); |
| 1342 if (imm4 & 1) { | 1355 if (imm4 & 1) { |
| 1343 Format(instr, "vdupb 'qd, 'dm['imm4_vdup]"); | 1356 Format(instr, "vdupb 'qd, 'dm['imm4_vdup]"); |
| 1344 } else if (imm4 & 2) { | 1357 } else if (imm4 & 2) { |
| 1345 Format(instr, "vduph 'qd, 'dm['imm4_vdup]"); | 1358 Format(instr, "vduph 'qd, 'dm['imm4_vdup]"); |
| 1346 } else if (imm4 & 4) { | 1359 } else if (imm4 & 4) { |
| 1347 Format(instr, "vdupw 'qd, 'dm['imm4_vdup]"); | 1360 Format(instr, "vdupw 'qd, 'dm['imm4_vdup]"); |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1481 human_buffer, | 1494 human_buffer, |
| 1482 sizeof(human_buffer), | 1495 sizeof(human_buffer), |
| 1483 pc); | 1496 pc); |
| 1484 pc += instruction_length; | 1497 pc += instruction_length; |
| 1485 } | 1498 } |
| 1486 } | 1499 } |
| 1487 | 1500 |
| 1488 } // namespace dart | 1501 } // namespace dart |
| 1489 | 1502 |
| 1490 #endif // defined TARGET_ARCH_ARM | 1503 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |