Commit c16e044c authored by Steinar Midtskogen's avatar Steinar Midtskogen

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
parent 95f1c2ab
......@@ -9,7 +9,9 @@
* PATENTS file, you can obtain it at www.aomedia.org/license/patent.
*/
#if defined(__OPTIMIZE__) && __OPTIMIZE__
#define ARCH NEON
#define ARCH_POSTFIX(name) name##_neon
#define SIMD_NAMESPACE simd_test_neon
#include "./simd_cmp_impl.h"
#endif
......@@ -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_cmp_impl.h"
#endif
......@@ -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 SSE4_1
#define ARCH_POSTFIX(name) name##_sse4_1
#define SIMD_NAMESPACE simd_test_sse4_1
#include "./simd_cmp_impl.h"
#endif
......@@ -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 SSSE3
#define ARCH_POSTFIX(name) name##_ssse3
#define SIMD_NAMESPACE simd_test_ssse3
#include "./simd_cmp_impl.h"
#endif
......@@ -9,7 +9,9 @@
* PATENTS file, you can obtain it at www.aomedia.org/license/patent.
*/
#if defined(__OPTIMIZE__) && __OPTIMIZE__
#define ARCH NEON
#define ARCH_POSTFIX(name) name##_neon
#define SIMD_NAMESPACE simd_test_neon
#include "./simd_impl.h"
#endif
......@@ -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
......@@ -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 SSE4_1
#define ARCH_POSTFIX(name) name##_sse4_1
#define SIMD_NAMESPACE simd_test_sse4_1
#include "./simd_impl.h"
#endif
......@@ -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 SSSE3
#define ARCH_POSTFIX(name) name##_ssse3
#define SIMD_NAMESPACE simd_test_ssse3
#include "./simd_impl.h"
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment