OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1091 // void Decoder::DecodeTypeVFP(Instruction* instr) | 1091 // void Decoder::DecodeTypeVFP(Instruction* instr) |
1092 // vmov: Sn = Rt | 1092 // vmov: Sn = Rt |
1093 // vmov: Rt = Sn | 1093 // vmov: Rt = Sn |
1094 // vcvt: Dd = Sm | 1094 // vcvt: Dd = Sm |
1095 // vcvt: Sd = Dm | 1095 // vcvt: Sd = Dm |
1096 // Dd = vabs(Dm) | 1096 // Dd = vabs(Dm) |
1097 // Dd = vneg(Dm) | 1097 // Dd = vneg(Dm) |
1098 // Dd = vadd(Dn, Dm) | 1098 // Dd = vadd(Dn, Dm) |
1099 // Dd = vsub(Dn, Dm) | 1099 // Dd = vsub(Dn, Dm) |
1100 // Dd = vmul(Dn, Dm) | 1100 // Dd = vmul(Dn, Dm) |
| 1101 // FIXME: vmla comment |
1101 // Dd = vdiv(Dn, Dm) | 1102 // Dd = vdiv(Dn, Dm) |
1102 // vcmp(Dd, Dm) | 1103 // vcmp(Dd, Dm) |
1103 // vmrs | 1104 // vmrs |
1104 // vmsr | 1105 // vmsr |
1105 // Dd = vsqrt(Dm) | 1106 // Dd = vsqrt(Dm) |
1106 void Decoder::DecodeTypeVFP(Instruction* instr) { | 1107 void Decoder::DecodeTypeVFP(Instruction* instr) { |
1107 VERIFY((instr->TypeValue() == 7) && (instr->Bit(24) == 0x0) ); | 1108 VERIFY((instr->TypeValue() == 7) && (instr->Bit(24) == 0x0) ); |
1108 VERIFY(instr->Bits(11, 9) == 0x5); | 1109 VERIFY(instr->Bits(11, 9) == 0x5); |
1109 | 1110 |
1110 if (instr->Bit(4) == 0) { | 1111 if (instr->Bit(4) == 0) { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1153 } | 1154 } |
1154 } else { | 1155 } else { |
1155 Unknown(instr); // Not used by V8. | 1156 Unknown(instr); // Not used by V8. |
1156 } | 1157 } |
1157 } else if ((instr->Opc1Value() == 0x2) && !(instr->Opc3Value() & 0x1)) { | 1158 } else if ((instr->Opc1Value() == 0x2) && !(instr->Opc3Value() & 0x1)) { |
1158 if (instr->SzValue() == 0x1) { | 1159 if (instr->SzValue() == 0x1) { |
1159 Format(instr, "vmul.f64'cond 'Dd, 'Dn, 'Dm"); | 1160 Format(instr, "vmul.f64'cond 'Dd, 'Dn, 'Dm"); |
1160 } else { | 1161 } else { |
1161 Unknown(instr); // Not used by V8. | 1162 Unknown(instr); // Not used by V8. |
1162 } | 1163 } |
| 1164 } else if ((instr->Opc1Value() == 0x0) && !(instr->Opc3Value() & 0x1)) { |
| 1165 printf("DISASM VFMA\n"); |
| 1166 if (instr->SzValue() == 0x1) { |
| 1167 Format(instr, "vmla.f64'cond 'Dd, 'Dn, 'Dm"); |
| 1168 } else { |
| 1169 Unknown(instr); // Not used by V8. |
| 1170 } |
1163 } else if ((instr->Opc1Value() == 0x4) && !(instr->Opc3Value() & 0x1)) { | 1171 } else if ((instr->Opc1Value() == 0x4) && !(instr->Opc3Value() & 0x1)) { |
1164 if (instr->SzValue() == 0x1) { | 1172 if (instr->SzValue() == 0x1) { |
1165 Format(instr, "vdiv.f64'cond 'Dd, 'Dn, 'Dm"); | 1173 Format(instr, "vdiv.f64'cond 'Dd, 'Dn, 'Dm"); |
1166 } else { | 1174 } else { |
1167 Unknown(instr); // Not used by V8. | 1175 Unknown(instr); // Not used by V8. |
1168 } | 1176 } |
1169 } else { | 1177 } else { |
1170 Unknown(instr); // Not used by V8. | 1178 Unknown(instr); // Not used by V8. |
1171 } | 1179 } |
1172 } else { | 1180 } else { |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1527 pc += d.InstructionDecode(buffer, pc); | 1535 pc += d.InstructionDecode(buffer, pc); |
1528 fprintf(f, "%p %08x %s\n", | 1536 fprintf(f, "%p %08x %s\n", |
1529 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); | 1537 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); |
1530 } | 1538 } |
1531 } | 1539 } |
1532 | 1540 |
1533 | 1541 |
1534 } // namespace disasm | 1542 } // namespace disasm |
1535 | 1543 |
1536 #endif // V8_TARGET_ARCH_ARM | 1544 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |