Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(546)

Side by Side Diff: src/arm/disasm-arm.cc

Issue 11293061: Emit VMLA for multiply-add on ARM (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/arm/lithium-arm.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 // Dd = vmla(Dn, Dm)
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
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 if (instr->SzValue() == 0x1) {
1166 Format(instr, "vmla.f64'cond 'Dd, 'Dn, 'Dm");
1167 } else {
1168 Unknown(instr); // Not used by V8.
1169 }
1163 } else if ((instr->Opc1Value() == 0x4) && !(instr->Opc3Value() & 0x1)) { 1170 } else if ((instr->Opc1Value() == 0x4) && !(instr->Opc3Value() & 0x1)) {
1164 if (instr->SzValue() == 0x1) { 1171 if (instr->SzValue() == 0x1) {
1165 Format(instr, "vdiv.f64'cond 'Dd, 'Dn, 'Dm"); 1172 Format(instr, "vdiv.f64'cond 'Dd, 'Dn, 'Dm");
1166 } else { 1173 } else {
1167 Unknown(instr); // Not used by V8. 1174 Unknown(instr); // Not used by V8.
1168 } 1175 }
1169 } else { 1176 } else {
1170 Unknown(instr); // Not used by V8. 1177 Unknown(instr); // Not used by V8.
1171 } 1178 }
1172 } else { 1179 } else {
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
1527 pc += d.InstructionDecode(buffer, pc); 1534 pc += d.InstructionDecode(buffer, pc);
1528 fprintf(f, "%p %08x %s\n", 1535 fprintf(f, "%p %08x %s\n",
1529 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); 1536 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start());
1530 } 1537 }
1531 } 1538 }
1532 1539
1533 1540
1534 } // namespace disasm 1541 } // namespace disasm
1535 1542
1536 #endif // V8_TARGET_ARCH_ARM 1543 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/arm/lithium-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698