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

Unified Diff: src/ia32/lithium-ia32.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
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ia32/lithium-ia32.cc
diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc
index ba9c97eba215922c87fc43ba459d75527452c364..8755c32bdaff5f1f142409ca5808254ce7d41da8 100644
--- a/src/ia32/lithium-ia32.cc
+++ b/src/ia32/lithium-ia32.cc
@@ -1349,6 +1349,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());
Vyacheslav Egorov (Google) 2012/11/12 17:12:53 c is not used at start at all in the instruction p
+ 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());
« no previous file with comments | « src/ia32/lithium-ia32.h ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698