[AMDGPU][True16][CodeGen] true16 codegen pattern for v_med3_u/i16 (#121850)
[llvm-project.git] / compiler-rt / test / hwasan / CMakeLists.txt
blobd086db1e386fc262ae7b3b2d68a838e805c8cc6b
1 set(HWASAN_LIT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
3 set(HWASAN_TESTSUITES)
5 set(HWASAN_TEST_ARCH ${HWASAN_SUPPORTED_ARCH})
7 foreach(arch ${HWASAN_TEST_ARCH})
8   set(HWASAN_TEST_TARGET_ARCH ${arch})
9   string(TOLOWER "-${arch}" HWASAN_TEST_CONFIG_SUFFIX)
10   get_test_cc_for_arch(${arch} HWASAN_TEST_TARGET_CC HWASAN_TEST_TARGET_CFLAGS)
11   string(TOUPPER ${arch} ARCH_UPPER_CASE)
12   set(CONFIG_NAME ${ARCH_UPPER_CASE})
14   # FIXME: Set this.
15   set(HWASAN_ANDROID_FILES_TO_PUSH [])
17   configure_lit_site_cfg(
18     ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
19     ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME}/lit.site.cfg.py)
20   list(APPEND HWASAN_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME})
21 endforeach()
23 set(HWASAN_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
24 list(APPEND HWASAN_TEST_DEPS hwasan)
25 if(NOT COMPILER_RT_STANDALONE_BUILD)
26   if(COMPILER_RT_HAS_LLD AND "lld" IN_LIST LLVM_ENABLE_PROJECTS)
27     list(APPEND HWASAN_TEST_DEPS lld)
28   endif()
29 endif()
31 add_lit_testsuite(check-hwasan "Running the HWAddressSanitizer tests"
32   ${HWASAN_TESTSUITES}
33   DEPENDS ${HWASAN_TEST_DEPS}
34   PARAMS "HWASAN_ENABLE_ALIASES=1"
35   )
37 add_lit_testsuite(check-hwasan-lam
38   "Running the HWAddressSanitizer tests with Intel LAM"
39   ${HWASAN_TESTSUITES}
40   DEPENDS ${HWASAN_TEST_DEPS}
41   PARAMS "HWASAN_ENABLE_ALIASES=0"
42   EXCLUDE_FROM_CHECK_ALL
43   )