From e3a401a12beb94a01e8dfd1d274b41953087e2f2 Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Tue, 1 Jul 2014 19:58:41 +0000 Subject: [PATCH] [MSan] Fixup r212082: enable tests for _mm_ intrinsics if and only if the unit test source file is compiled with Clang. llvm-svn: 212121 --- compiler-rt/lib/msan/tests/msan_test.cc | 4 ++-- 1 file 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 d5e5c21e..0596a6f 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; -- 2.7.4