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

Unified Diff: runtime/vm/constants_arm.h

Issue 19493004: Adds more SIMD instructions for ARM. (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
« no previous file with comments | « runtime/vm/assembler_arm_test.cc ('k') | runtime/vm/disassembler_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/constants_arm.h
===================================================================
--- runtime/vm/constants_arm.h (revision 25291)
+++ runtime/vm/constants_arm.h (working copy)
@@ -12,7 +12,7 @@
// We support both VFPv3-D16 and VFPv3-D32 profiles, but currently only one at
// a time.
// TODO(zra): Detect number of registers at runtime by querying /proc/cpuinfo.
-#define VFPv3_D32
+#define VFPv3_D16
#if defined(VFPv3_D16) == defined(VFPv3_D32)
#error "Exactly one of VFPv3_D16 or VFPv3_D32 can be defined at a time."
#endif
@@ -166,10 +166,16 @@
static inline SRegister EvenSRegisterOf(DRegister d) {
+#ifdef VFPv3_D32
+ ASSERT(d < D16);
+#endif
return static_cast<SRegister>(d * 2);
}
static inline SRegister OddSRegisterOf(DRegister d) {
+#ifdef VFPv3_D32
+ ASSERT(d < D16);
+#endif
return static_cast<SRegister>((d * 2) + 1);
}
« no previous file with comments | « runtime/vm/assembler_arm_test.cc ('k') | runtime/vm/disassembler_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698