Index: src/flag-definitions.h |
diff --git a/src/flag-definitions.h b/src/flag-definitions.h |
index 47d87eaa50a044426cb446bb451c49d7bed6d3e0..ecf8ddc7615b307c1e00631dd7e5775eb20cd2d3 100644 |
--- a/src/flag-definitions.h |
+++ b/src/flag-definitions.h |
@@ -120,6 +120,11 @@ struct MaybeBoolFlag { |
#else |
# define ENABLE_32DREGS_DEFAULT false |
#endif |
+#if (defined CAN_USE_NEON) || !(defined ARM_TEST) |
+# define ENABLE_NEON_DEFAULT true |
+#else |
+# define ENABLE_NEON_DEFAULT false |
+#endif |
#define DEFINE_bool(nam, def, cmt) FLAG(BOOL, bool, nam, def, cmt) |
#define DEFINE_maybe_bool(nam, cmt) FLAG(MAYBE_BOOL, MaybeBoolFlag, nam, \ |
@@ -370,7 +375,7 @@ DEFINE_bool(enable_vfp3, ENABLE_VFP3_DEFAULT, |
"enable use of VFP3 instructions if available") |
DEFINE_bool(enable_armv7, ENABLE_ARMV7_DEFAULT, |
"enable use of ARMv7 instructions if available (ARM only)") |
-DEFINE_bool(enable_neon, true, |
+DEFINE_bool(enable_neon, ENABLE_NEON_DEFAULT, |
"enable use of NEON instructions if available (ARM only)") |
DEFINE_bool(enable_sudiv, true, |
"enable use of SDIV and UDIV instructions if available (ARM only)") |