Disable intrinsics unit tests if optimisations are disabled

This fix was motivated by a code generation bug in g++ on arm, but it
seems a good idea generally to disable these unit tests if we're not
compiling with optimisations, since the code tested is only intended
to be used as inlined functions, and while it's possible to compile
without optimisations, the tests become somewhat half-hearted since
there are workarounds when there's no inlining (such as for
instrinsics requiring immediate values), so the tests would partly
test code that wont be used anyway.

BUG=aomedia:377

Change-Id: I9a0515c96a7ed2f4636820dfc03fbb92323ca8ee
diff --git a/test/simd_sse2_test.cc b/test/simd_sse2_test.cc
index 4990b20..a0b49d7 100644
--- a/test/simd_sse2_test.cc
+++ b/test/simd_sse2_test.cc
@@ -9,7 +9,10 @@
  * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
  */
 
+#if (defined(__OPTIMIZE__) && __OPTIMIZE__) || \
+    (!defined(__GNUC__) && !defined(_DEBUG))
 #define ARCH SSE2
 #define ARCH_POSTFIX(name) name##_sse2
 #define SIMD_NAMESPACE simd_test_sse2
 #include "./simd_impl.h"
+#endif