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

Unified Diff: src/x64/lithium-x64.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
« src/ia32/lithium-ia32.cc ('K') | « src/x64/lithium-x64.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/x64/lithium-x64.cc
diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc
index c6004e51b715d25b48dd0dbc0152ff0d66d8d4ae..98801f9571bdd1b8de54a112521e669d32ad3699 100644
--- a/src/x64/lithium-x64.cc
+++ b/src/x64/lithium-x64.cc
@@ -1281,6 +1281,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());
« src/ia32/lithium-ia32.cc ('K') | « src/x64/lithium-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698