[compiler-rt] r212121 - [MSan] Fixup r212082: enable tests for _mm_ intrinsics if and only if the
Alexey Samsonov
vonosmas at gmail.com
Tue Jul 1 12:58:41 PDT 2014
Author: samsonov
Date: Tue Jul 1 14:58:41 2014
New Revision: 212121
URL: http://llvm.org/viewvc/llvm-project?rev=212121&view=rev
Log:
[MSan] Fixup r212082: enable tests for _mm_ intrinsics if and only if the
unit test source file is compiled with Clang.
Modified:
compiler-rt/trunk/lib/msan/tests/msan_test.cc
Modified: compiler-rt/trunk/lib/msan/tests/msan_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/tests/msan_test.cc?rev=212121&r1=212120&r2=212121&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/tests/msan_test.cc (original)
+++ compiler-rt/trunk/lib/msan/tests/msan_test.cc Tue Jul 1 14:58:41 2014
@@ -3556,7 +3556,7 @@ TEST(MemorySanitizer, UnalignedStore64_p
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;
More information about the llvm-commits
mailing list