| 1 |
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) |
| 2 |
add_library(FortranEvaluateTesting |
| 3 |
testing.cpp |
| 4 |
fp-testing.cpp |
| 5 |
) |
| 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}) |
| 13 |
|
| 14 |
add_flang_nongtest_unittest(leading-zero-bit-count |
| 15 |
FortranEvaluateTesting |
| 16 |
) |
| 17 |
|
| 18 |
add_flang_nongtest_unittest(bit-population-count |
| 19 |
FortranEvaluateTesting |
| 20 |
) |
| 21 |
|
| 22 |
add_flang_nongtest_unittest(uint128 |
| 23 |
FortranEvaluateTesting |
| 24 |
) |
| 25 |
|
| 26 |
add_flang_nongtest_unittest(expression |
| 27 |
FortranCommon |
| 28 |
FortranEvaluateTesting |
| 29 |
FortranEvaluate |
| 30 |
FortranSemantics |
| 31 |
FortranParser |
| 32 |
) |
| 33 |
|
| 34 |
add_flang_nongtest_unittest(integer |
| 35 |
FortranEvaluateTesting |
| 36 |
FortranEvaluate |
| 37 |
FortranSemantics |
| 38 |
) |
| 39 |
|
| 40 |
add_flang_nongtest_unittest(intrinsics |
| 41 |
FortranCommon |
| 42 |
FortranEvaluateTesting |
| 43 |
FortranEvaluate |
| 44 |
FortranDecimal |
| 45 |
FortranSemantics |
| 46 |
FortranParser |
| 47 |
FortranRuntime |
| 48 |
) |
| 49 |
|
| 50 |
add_flang_nongtest_unittest(logical |
| 51 |
FortranEvaluateTesting |
| 52 |
FortranEvaluate |
| 53 |
FortranSemantics |
| 54 |
) |
| 55 |
|
| 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 |
| 67 |
) |
| 68 |
llvm_update_compile_flags(real.test) |
| 69 |
|
| 70 |
add_flang_nongtest_unittest(reshape |
| 71 |
FortranEvaluateTesting |
| 72 |
FortranSemantics |
| 73 |
FortranEvaluate |
| 74 |
FortranRuntime |
| 75 |
) |
| 76 |
|
| 77 |
add_flang_nongtest_unittest(ISO-Fortran-binding |
| 78 |
FortranEvaluateTesting |
| 79 |
FortranEvaluate |
| 80 |
FortranSemantics |
| 81 |
FortranRuntime |
| 82 |
) |
| 83 |
|
| 84 |
add_flang_nongtest_unittest(folding |
| 85 |
FortranCommon |
| 86 |
FortranEvaluateTesting |
| 87 |
FortranEvaluate |
| 88 |
FortranSemantics |
| 89 |
) |