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

Unified Diff: runtime/vm/constants_arm.h

Issue 19290006: Implements ARM SIMD multiplication and subtraction instructions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 months 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: runtime/vm/constants_arm.h
===================================================================
--- runtime/vm/constants_arm.h (revision 25008)
+++ runtime/vm/constants_arm.h (working copy)
@@ -164,10 +164,19 @@
}
+static inline SRegister EvenSRegisterOf(DRegister d) {
+ return static_cast<SRegister>(d * 2);
+}
+
+static inline SRegister OddSRegisterOf(DRegister d) {
+ return static_cast<SRegister>((d * 2) + 1);
+}
+
+
// Register aliases for floating point scratch registers.
const QRegister QTMP = Q7; // Overlaps with DTMP, STMP.
-const DRegister DTMP = D14; // Overlaps with STMP.
-const SRegister STMP = S28;
+const DRegister DTMP = EvenDRegisterOf(QTMP); // Overlaps with STMP.
+const SRegister STMP = EvenSRegisterOf(DTMP);
// Architecture independent aliases.
typedef QRegister FpuRegister;

Powered by Google App Engine
This is Rietveld 408576698