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

Unified Diff: src/mips/lithium-mips.cc

Issue 11293061: Emit VMLA for multiply-add on ARM (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Clean up and support other targets 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 side-by-side diff with in-line comments
Download patch
Index: src/mips/lithium-mips.cc
diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc
index b5eb128e27c9c0df240c8edcab5666eeaa168751..5bb1cc14031d2cf16ccc3d90954a01f63eb0d48d 100644
--- a/src/mips/lithium-mips.cc
+++ b/src/mips/lithium-mips.cc
@@ -1241,6 +1241,20 @@ LInstruction* LChunkBuilder::DoMul(HMul* instr) {
}
+LInstruction* LChunkBuilder::DoMultiplyAddD(HMultiplyAddD* instr) {
+ ASSERT(instr->representation().IsDouble());
+ ASSERT(instr->a()->representation().IsDouble());
+ ASSERT(instr->b()->representation().IsDouble());
+ ASSERT(instr->c()->representation().IsDouble());
+
+ LOperand* a = UseRegisterAtStart(instr->a());
+ LOperand* b = UseRegisterAtStart(instr->b());
+ LOperand* c = UseRegisterAtStart(instr->c());
+ LMultiplyAddD* result = new(zone()) LMultiplyAddD(a, b, c);
+ return DefineSameAsFirst(result);
+}
+
+
LInstruction* LChunkBuilder::DoSub(HSub* instr) {
if (instr->representation().IsInteger32()) {
ASSERT(instr->left()->representation().IsInteger32());

Powered by Google App Engine
This is Rietveld 408576698