Index: compiler-rt/trunk/lib/msan/tests/CMakeLists.txt =================================================================== --- compiler-rt/trunk/lib/msan/tests/CMakeLists.txt +++ compiler-rt/trunk/lib/msan/tests/CMakeLists.txt @@ -136,9 +136,9 @@ # We should only build MSan unit tests if we can build instrumented libcxx. if(COMPILER_RT_CAN_EXECUTE_TESTS AND COMPILER_RT_HAS_LIBCXX_SOURCES) - if(CAN_TARGET_x86_64) - add_msan_tests_for_arch(x86_64 "") - add_msan_tests_for_arch(x86_64 "-with-call" + foreach(arch ${MSAN_SUPPORTED_ARCH}) + add_msan_tests_for_arch(${arch} "") + add_msan_tests_for_arch(${arch} "-with-call" -mllvm -msan-instrumentation-with-call-threshold=0) - endif() + endforeach() endif() Index: compiler-rt/trunk/lib/msan/tests/msan_test.cc =================================================================== --- compiler-rt/trunk/lib/msan/tests/msan_test.cc +++ compiler-rt/trunk/lib/msan/tests/msan_test.cc @@ -3631,7 +3631,7 @@ EXPECT_POISONED_O(x[11], originx3); } -#if defined(__clang__) +#if (defined(__x86_64__) && defined(__clang__)) namespace { typedef U1 V16x8 __attribute__((__vector_size__(16))); typedef U2 V8x16 __attribute__((__vector_size__(16)));