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

Unified Diff: src/arm/lithium-codegen-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-codegen-arm.cc
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc
index 8c107d95f7f6e0f2d7f1179c164dafaa89f0af95..73946242e5bb556b3b6a2ae9f0fd64267fc5e145 100644
--- a/src/arm/lithium-codegen-arm.cc
+++ b/src/arm/lithium-codegen-arm.cc
@@ -1289,6 +1289,15 @@ void LCodeGen::DoDivI(LDivI* instr) {
}
+void LCodeGen::DoMultiplyAdd(LMultiplyAdd* instr) {
+ DwVfpRegister a = ToDoubleRegister(instr->a()); // FIXME: Not sure this is correct..
ulan_google 2012/11/07 09:54:03 Should we check for support of vmla here? Otherwis
+ DwVfpRegister b = ToDoubleRegister(instr->b());
+ DwVfpRegister c = ToDoubleRegister(instr->c());
+
+ __ vmla(c, a, b);
+}
+
+
void LCodeGen::DoMathFloorOfDiv(LMathFloorOfDiv* instr) {
const Register result = ToRegister(instr->result());
const Register left = ToRegister(instr->left());

Powered by Google App Engine
This is Rietveld 408576698