diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-09-04 20:26:58 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-09-04 20:26:58 +0000 |
commit | f58b7feda623b639b3944fa6d0fe7a30e40bf4e8 (patch) | |
tree | d0b5cd758a4b8376dac1519076738871fa9f1e03 /lib/asan/tests | |
parent | 1e706a3e98be9dfac2b187afb59ade7405977646 (diff) |
[asan] Disable asm instrumentation tests on android/x86.
https://github.com/google/sanitizers/issues/353
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@246866 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/tests')
-rw-r--r-- | lib/asan/tests/asan_asm_test.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/asan/tests/asan_asm_test.cc b/lib/asan/tests/asan_asm_test.cc index 200de2c13..9d1ba595c 100644 --- a/lib/asan/tests/asan_asm_test.cc +++ b/lib/asan/tests/asan_asm_test.cc @@ -14,7 +14,10 @@ #if defined(__linux__) -#if defined(__x86_64__) || (defined(__i386__) && defined(__SSE2__)) +// Assembly instrumentation is broken on x86 Android (x86 + PIC + shared runtime +// library). See https://github.com/google/sanitizers/issues/353 +#if defined(__x86_64__) || \ + (defined(__i386__) && defined(__SSE2__) && !defined(__ANDROID__)) #include <emmintrin.h> @@ -70,7 +73,7 @@ DECLARE_ASM_REP_MOVS(U8, "movsq"); #endif // defined(__x86_64__) -#if defined(__i386__) && defined(__SSE2__) +#if defined(__i386__) && defined(__SSE2__) && !defined(__ANDROID__) namespace { @@ -108,7 +111,7 @@ template<> Type asm_read<Type>(Type *ptr) { \ #endif // defined(__i386__) && defined(__SSE2__) -#if defined(__x86_64__) || (defined(__i386__) && defined(__SSE2__)) +#if defined(__x86_64__) || (defined(__i386__) && defined(__SSE2__) && !defined(__ANDROID__)) namespace { |