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

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

Issue 11293061: Emit VMLA for multiply-add on ARM (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Use VMLA instead, pass all tests(*) 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/arm/lithium-arm.cc
diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc
index ff6da03bb5811260b4add49b34bc8dff5bb838c6..f66cdec2b2e6f582baf0286a97f952c7a1b2bde7 100644
--- a/src/arm/lithium-arm.cc
+++ b/src/arm/lithium-arm.cc
@@ -1311,6 +1311,22 @@ LInstruction* LChunkBuilder::DoMul(HMul* instr) {
}
+LInstruction* LChunkBuilder::DoMultiplyAdd(HMultiplyAdd* instr) {
+ //printf("LChunkBuilder::DoMultiplyAdd\n");
+ ASSERT(instr->representation().IsDouble());
+ ASSERT(instr->a()->representation().IsDouble());
+ ASSERT(instr->b()->representation().IsDouble());
+ ASSERT(instr->c()->representation().IsDouble());
+
+ // FIXME: Not entirely sure this is how to do it..
ulan_google 2012/11/07 09:54:03 This looks correct.
+ LOperand* a = UseRegisterAtStart(instr->a());
+ LOperand* b = UseRegisterAtStart(instr->b());
+ LOperand* c = UseRegisterAtStart(instr->c());
+ LMultiplyAdd* result = new(zone()) LMultiplyAdd(c, a, b);
+ 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