| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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_ARM64. | 7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. |
| 8 #if defined(TARGET_ARCH_ARM64) | 8 #if defined(TARGET_ARCH_ARM64) |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 | 10 |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 Format(instr, "ldrx 'rt, 'pcldr"); | 518 Format(instr, "ldrx 'rt, 'pcldr"); |
| 519 } else { | 519 } else { |
| 520 Format(instr, "ldrw 'rt, 'pcldr"); | 520 Format(instr, "ldrw 'rt, 'pcldr"); |
| 521 } | 521 } |
| 522 } | 522 } |
| 523 | 523 |
| 524 | 524 |
| 525 void ARM64Decoder::DecodeAddSubImm(Instr* instr) { | 525 void ARM64Decoder::DecodeAddSubImm(Instr* instr) { |
| 526 switch (instr->Bit(30)) { | 526 switch (instr->Bit(30)) { |
| 527 case 0: { | 527 case 0: { |
| 528 if ((instr->RdField() == R31) && (instr->SFField())) { | 528 if ((instr->RdField() == R31) && (instr->SField() == 1)) { |
| 529 Format(instr, "cmni'sf 'rn, 'imm12s"); | 529 Format(instr, "cmni'sf 'rn, 'imm12s"); |
| 530 } else { | 530 } else { |
| 531 if (((instr->RdField() == R31) || (instr->RnField() == R31)) && | 531 if (((instr->RdField() == R31) || (instr->RnField() == R31)) && |
| 532 (instr->Imm12Field() == 0) && (instr->Bit(29) == 0)) { | 532 (instr->Imm12Field() == 0) && (instr->Bit(29) == 0)) { |
| 533 Format(instr, "mov'sf 'rd, 'rn"); | 533 Format(instr, "mov'sf 'rd, 'rn"); |
| 534 } else { | 534 } else { |
| 535 Format(instr, "addi'sf's 'rd, 'rn, 'imm12s"); | 535 Format(instr, "addi'sf's 'rd, 'rn, 'imm12s"); |
| 536 } | 536 } |
| 537 } | 537 } |
| 538 break; | 538 break; |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 919 human_buffer, | 919 human_buffer, |
| 920 sizeof(human_buffer), | 920 sizeof(human_buffer), |
| 921 pc); | 921 pc); |
| 922 pc += instruction_length; | 922 pc += instruction_length; |
| 923 } | 923 } |
| 924 } | 924 } |
| 925 | 925 |
| 926 } // namespace dart | 926 } // namespace dart |
| 927 | 927 |
| 928 #endif // defined TARGET_ARCH_ARM | 928 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |