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 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1101 // vmov: Sn = Rt | 1101 // vmov: Sn = Rt |
1102 // vmov: Rt = Sn | 1102 // vmov: Rt = Sn |
1103 // vcvt: Dd = Sm | 1103 // vcvt: Dd = Sm |
1104 // vcvt: Sd = Dm | 1104 // vcvt: Sd = Dm |
1105 // Dd = vabs(Dm) | 1105 // Dd = vabs(Dm) |
1106 // Dd = vneg(Dm) | 1106 // Dd = vneg(Dm) |
1107 // Dd = vadd(Dn, Dm) | 1107 // Dd = vadd(Dn, Dm) |
1108 // Dd = vsub(Dn, Dm) | 1108 // Dd = vsub(Dn, Dm) |
1109 // Dd = vmul(Dn, Dm) | 1109 // Dd = vmul(Dn, Dm) |
1110 // Dd = vmla(Dn, Dm) | 1110 // Dd = vmla(Dn, Dm) |
| 1111 // Dd = vmls(Dn, Dm) |
1111 // Dd = vdiv(Dn, Dm) | 1112 // Dd = vdiv(Dn, Dm) |
1112 // vcmp(Dd, Dm) | 1113 // vcmp(Dd, Dm) |
1113 // vmrs | 1114 // vmrs |
1114 // vmsr | 1115 // vmsr |
1115 // Dd = vsqrt(Dm) | 1116 // Dd = vsqrt(Dm) |
1116 void Decoder::DecodeTypeVFP(Instruction* instr) { | 1117 void Decoder::DecodeTypeVFP(Instruction* instr) { |
1117 VERIFY((instr->TypeValue() == 7) && (instr->Bit(24) == 0x0) ); | 1118 VERIFY((instr->TypeValue() == 7) && (instr->Bit(24) == 0x0) ); |
1118 VERIFY(instr->Bits(11, 9) == 0x5); | 1119 VERIFY(instr->Bits(11, 9) == 0x5); |
1119 | 1120 |
1120 if (instr->Bit(4) == 0) { | 1121 if (instr->Bit(4) == 0) { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1169 Format(instr, "vmul.f64'cond 'Dd, 'Dn, 'Dm"); | 1170 Format(instr, "vmul.f64'cond 'Dd, 'Dn, 'Dm"); |
1170 } else { | 1171 } else { |
1171 Unknown(instr); // Not used by V8. | 1172 Unknown(instr); // Not used by V8. |
1172 } | 1173 } |
1173 } else if ((instr->Opc1Value() == 0x0) && !(instr->Opc3Value() & 0x1)) { | 1174 } else if ((instr->Opc1Value() == 0x0) && !(instr->Opc3Value() & 0x1)) { |
1174 if (instr->SzValue() == 0x1) { | 1175 if (instr->SzValue() == 0x1) { |
1175 Format(instr, "vmla.f64'cond 'Dd, 'Dn, 'Dm"); | 1176 Format(instr, "vmla.f64'cond 'Dd, 'Dn, 'Dm"); |
1176 } else { | 1177 } else { |
1177 Unknown(instr); // Not used by V8. | 1178 Unknown(instr); // Not used by V8. |
1178 } | 1179 } |
| 1180 } else if ((instr->Opc1Value() == 0x0) && (instr->Opc3Value() & 0x1)) { |
| 1181 if (instr->SzValue() == 0x1) { |
| 1182 Format(instr, "vmls.f64'cond 'Dd, 'Dn, 'Dm"); |
| 1183 } else { |
| 1184 Unknown(instr); // Not used by V8. |
| 1185 } |
1179 } else if ((instr->Opc1Value() == 0x4) && !(instr->Opc3Value() & 0x1)) { | 1186 } else if ((instr->Opc1Value() == 0x4) && !(instr->Opc3Value() & 0x1)) { |
1180 if (instr->SzValue() == 0x1) { | 1187 if (instr->SzValue() == 0x1) { |
1181 Format(instr, "vdiv.f64'cond 'Dd, 'Dn, 'Dm"); | 1188 Format(instr, "vdiv.f64'cond 'Dd, 'Dn, 'Dm"); |
1182 } else { | 1189 } else { |
1183 Unknown(instr); // Not used by V8. | 1190 Unknown(instr); // Not used by V8. |
1184 } | 1191 } |
1185 } else { | 1192 } else { |
1186 Unknown(instr); // Not used by V8. | 1193 Unknown(instr); // Not used by V8. |
1187 } | 1194 } |
1188 } else { | 1195 } else { |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1556 pc += d.InstructionDecode(buffer, pc); | 1563 pc += d.InstructionDecode(buffer, pc); |
1557 fprintf(f, "%p %08x %s\n", | 1564 fprintf(f, "%p %08x %s\n", |
1558 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); | 1565 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); |
1559 } | 1566 } |
1560 } | 1567 } |
1561 | 1568 |
1562 | 1569 |
1563 } // namespace disasm | 1570 } // namespace disasm |
1564 | 1571 |
1565 #endif // V8_TARGET_ARCH_ARM | 1572 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |