diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2014-07-01 19:58:41 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-07-01 19:58:41 +0000 |
commit | f0491ad97b31b2b3b8e954e6a6cc1d3b71676b69 (patch) | |
tree | 6511e34085b4d7e74ea510fc849022c011e2a0de /lib | |
parent | 5ed1ca723a900b0fd7ce1ae3d18f71267c75629c (diff) | |
download | compiler-rt-f0491ad97b31b2b3b8e954e6a6cc1d3b71676b69.tar.gz |
[MSan] Fixup r212082: enable tests for _mm_ intrinsics if and only if the
unit test source file is compiled with Clang.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@212121 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/msan/tests/msan_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/msan/tests/msan_test.cc b/lib/msan/tests/msan_test.cc index d5e5c21ed..0596a6f4b 100644 --- a/lib/msan/tests/msan_test.cc +++ b/lib/msan/tests/msan_test.cc @@ -3556,7 +3556,7 @@ TEST(MemorySanitizer, UnalignedStore64_precise2) { EXPECT_POISONED_O(x[11], originx3); } -#ifndef MSAN_TEST_DISABLE_VECTOR_INTRINSICS +#if defined(__clang__) namespace { typedef U1 V16x8 __attribute__((__vector_size__(16))); typedef U2 V8x16 __attribute__((__vector_size__(16))); @@ -3717,7 +3717,7 @@ TEST(VectorMaddTest, mmx_pmadd_wd) { EXPECT_EQ((unsigned)(2 * 102 + 3 * 103), c[1]); } -#endif // MSAN_TEST_DISABLE_VECTOR_INTRINSICS +#endif // defined(__clang__) TEST(MemorySanitizerDr, StoreInDSOTest) { if (!__msan_has_dynamic_component()) return; |