[SLP] Add cost model for `llvm.powi.*` intrinsics
[llvm-project.git] / flang / unittests / Evaluate / CMakeLists.txt
blobffd821ac65eb3871bb118c62097f3ee648db771d
1 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
2 add_library(FortranEvaluateTesting
3   testing.cpp
4   fp-testing.cpp
6 if (LLVM_LINK_LLVM_DYLIB)
7   set(llvm_libs LLVM)
8 else()
9   llvm_map_components_to_libnames(llvm_libs Support)
10 endif()
11 target_link_libraries(FortranEvaluateTesting
12     ${llvm_libs})
14 add_flang_nongtest_unittest(leading-zero-bit-count
15   FortranEvaluateTesting
18 add_flang_nongtest_unittest(bit-population-count
19   FortranEvaluateTesting
22 add_flang_nongtest_unittest(uint128
23   FortranEvaluateTesting
26 add_flang_nongtest_unittest(expression
27   FortranCommon
28   FortranEvaluateTesting
29   FortranEvaluate
30   FortranSemantics
31   FortranParser
34 add_flang_nongtest_unittest(integer
35   FortranEvaluateTesting
36   FortranEvaluate
37   FortranSemantics
40 add_flang_nongtest_unittest(intrinsics
41   FortranCommon
42   FortranEvaluateTesting
43   FortranEvaluate
44   FortranDecimal
45   FortranSemantics
46   FortranParser
47   FortranRuntime
50 add_flang_nongtest_unittest(logical
51   FortranEvaluateTesting
52   FortranEvaluate
53   FortranSemantics
56 # GCC -fno-exceptions breaks the fenv.h interfaces needed to capture
57 # IEEE exception flags (different use of the word "exception")
58 # in the actual hardware floating-point status register, so ensure that
59 # C++ exceptions are enabled for this test.
60 set(LLVM_REQUIRES_EH ON)
61 set(LLVM_REQUIRES_RTTI ON)
62 add_flang_nongtest_unittest(real
63   FortranEvaluateTesting
64   FortranEvaluate
65   FortranDecimal
66   FortranSemantics
68 llvm_update_compile_flags(real.test)
70 add_flang_nongtest_unittest(reshape
71   FortranEvaluateTesting
72   FortranSemantics
73   FortranEvaluate
74   FortranRuntime
77 add_flang_nongtest_unittest(ISO-Fortran-binding
78   FortranEvaluateTesting
79   FortranEvaluate
80   FortranSemantics
81   FortranRuntime
84 add_flang_nongtest_unittest(folding
85   FortranCommon
86   FortranEvaluateTesting
87   FortranEvaluate
88   FortranSemantics