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

Unified Diff: src/mips/lithium-codegen-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-codegen-mips.cc
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc
index f79208ea25a9bb27b88468182248ea9f1047e8d1..27894fa5be5901e68ff033546f28aca7049465f7 100644
--- a/src/mips/lithium-codegen-mips.cc
+++ b/src/mips/lithium-codegen-mips.cc
@@ -1097,6 +1097,19 @@ void LCodeGen::DoMulI(LMulI* instr) {
}
+void LCodeGen::DoMultiplyAddD(LMultiplyAddD* instr) {
+ XMMRegister a = ToDoubleRegister(instr->a());
+ XMMRegister b = ToDoubleRegister(instr->b());
+ XMMRegister c = ToDoubleRegister(instr->c());
+
+ // This is computed in-place.
+ ASSERT(a.is(ToDoubleRegister(instr->result())));
+
+ __ mul_d(a, b);
+ __ add_d(a, c);
+}
+
+
void LCodeGen::DoBitI(LBitI* instr) {
LOperand* left_op = instr->left();
LOperand* right_op = instr->right();

Powered by Google App Engine
This is Rietveld 408576698