[compiler-rt] 41f8ef3 - tsan: enable sse4.2 in tests

Dmitry Vyukov via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 21 22:13:51 PDT 2021


Author: Dmitry Vyukov
Date: 2021-09-22T07:13:47+02:00
New Revision: 41f8ef3e3183145a49366bb4cc639dd13664d0c6

URL: https://github.com/llvm/llvm-project/commit/41f8ef3e3183145a49366bb4cc639dd13664d0c6
DIFF: https://github.com/llvm/llvm-project/commit/41f8ef3e3183145a49366bb4cc639dd13664d0c6.diff

LOG: tsan: enable sse4.2 in tests

Pass -msse4.2 flag to the tests the same way we do for the runtime.
Layout of some structs in the runtime headers depends on the flag
(TSAN_VECTORIZE), so we need it to be consistent across the runtime
and tests.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D110192

Added: 
    

Modified: 
    compiler-rt/lib/tsan/tests/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/tsan/tests/CMakeLists.txt b/compiler-rt/lib/tsan/tests/CMakeLists.txt
index 56a4278f363c..d487660da935 100644
--- a/compiler-rt/lib/tsan/tests/CMakeLists.txt
+++ b/compiler-rt/lib/tsan/tests/CMakeLists.txt
@@ -20,6 +20,8 @@ if(COMPILER_RT_TSAN_DEBUG_OUTPUT)
                                    -DTSAN_DEBUG_OUTPUT=2)
 endif()
 
+append_list_if(COMPILER_RT_HAS_MSSE4_2_FLAG -msse4.2 TSAN_UNITTEST_CFLAGS)
+
 set(TSAN_TEST_ARCH ${TSAN_SUPPORTED_ARCH})
 
 set(LINK_FLAGS ${COMPILER_RT_UNITTEST_LINK_FLAGS})


        


More information about the llvm-commits mailing list