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 | e3a401a12beb94a01e8dfd1d274b41953087e2f2 (patch) | |
| tree | b48aa988fc7c25ba87488705cd37e33d38fb6860 | |
| parent | 21feb2e1d25750b42043219a624950d65ace9e31 (diff) | |
| download | bcm5719-llvm-e3a401a12beb94a01e8dfd1d274b41953087e2f2.tar.gz bcm5719-llvm-e3a401a12beb94a01e8dfd1d274b41953087e2f2.zip | |
[MSan] Fixup r212082: enable tests for _mm_ intrinsics if and only if the
unit test source file is compiled with Clang.
llvm-svn: 212121
| -rw-r--r-- | compiler-rt/lib/msan/tests/msan_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/msan/tests/msan_test.cc b/compiler-rt/lib/msan/tests/msan_test.cc index d5e5c21ede0..0596a6f4b3e 100644 --- a/compiler-rt/lib/msan/tests/msan_test.cc +++ b/compiler-rt/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; |

