| 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 975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 986 } | 986 } |
| 987 | 987 |
| 988 | 988 |
| 989 void ARM64Decoder::DecodeFPOneSource(Instr* instr) { | 989 void ARM64Decoder::DecodeFPOneSource(Instr* instr) { |
| 990 const int opc = instr->Bits(15, 2); | 990 const int opc = instr->Bits(15, 2); |
| 991 | 991 |
| 992 switch (opc) { | 992 switch (opc) { |
| 993 case 0: | 993 case 0: |
| 994 Format(instr, "fmovdd 'vd, 'vn"); | 994 Format(instr, "fmovdd 'vd, 'vn"); |
| 995 break; | 995 break; |
| 996 case 1: |
| 997 Format(instr, "fabsd 'vd, 'vn"); |
| 998 break; |
| 999 case 2: |
| 1000 Format(instr, "fnegd 'vd, 'vn"); |
| 1001 break; |
| 1002 case 3: |
| 1003 Format(instr, "fsqrtd 'vd, 'vn"); |
| 1004 break; |
| 996 default: | 1005 default: |
| 997 Unknown(instr); | 1006 UNREACHABLE(); |
| 998 break; | 1007 break; |
| 999 } | 1008 } |
| 1000 } | 1009 } |
| 1001 | 1010 |
| 1002 | 1011 |
| 1003 void ARM64Decoder::DecodeFPTwoSource(Instr* instr) { | 1012 void ARM64Decoder::DecodeFPTwoSource(Instr* instr) { |
| 1004 if (instr->Bits(22, 2) != 1) { | 1013 if (instr->Bits(22, 2) != 1) { |
| 1005 Unknown(instr); | 1014 Unknown(instr); |
| 1006 return; | 1015 return; |
| 1007 } | 1016 } |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1130 human_buffer, | 1139 human_buffer, |
| 1131 sizeof(human_buffer), | 1140 sizeof(human_buffer), |
| 1132 pc); | 1141 pc); |
| 1133 pc += instruction_length; | 1142 pc += instruction_length; |
| 1134 } | 1143 } |
| 1135 } | 1144 } |
| 1136 | 1145 |
| 1137 } // namespace dart | 1146 } // namespace dart |
| 1138 | 1147 |
| 1139 #endif // defined TARGET_ARCH_ARM | 1148 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |