Index: src/flag-definitions.h |
diff --git a/src/flag-definitions.h b/src/flag-definitions.h |
index 217b2b359b09c39429ef5cef4423710f8be3d2a1..02b852ea188c6be638ba0aa3608b066a465fdabd 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)") |