[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libc / test / CMakeLists.txt
blobf22f2b183aca92e675a7753ca845696c5ebc9b7b
1 add_custom_target(check-libc)
2 add_custom_target(libc-unit-tests)
3 add_custom_target(libc-hermetic-tests)
4 add_dependencies(check-libc libc-unit-tests libc-hermetic-tests)
6 add_custom_target(exhaustive-check-libc)
7 add_custom_target(libc-long-running-tests)
9 add_subdirectory(UnitTest)
11 if(LIBC_TARGET_ARCHITECTURE_IS_GPU AND
12    (NOT TARGET libc.utils.gpu.loader OR NOT TARGET libc.startup.gpu.crt1))
13   message(WARNING "Cannot build libc GPU tests, missing loader implementation")
14   return()
15 endif()
17 add_subdirectory(include)
18 add_subdirectory(src)
19 add_subdirectory(utils)
21 if(LLVM_LIBC_FULL_BUILD AND NOT LIBC_TARGET_OS_IS_BAREMETAL)
22   add_subdirectory(IntegrationTest)
23 endif()
25 if(NOT LLVM_LIBC_FULL_BUILD)
26   return()
27 endif()
29 if(NOT ${LIBC_TARGET_OS} STREQUAL "linux" AND
30    NOT ${LIBC_TARGET_OS} STREQUAL "gpu")
31   # Integration tests are currently only available for linux and the GPU.
32   return()
33 endif()
34 add_subdirectory(integration)