diff --git a/Fortran/gfortran/CMakeLists.txt b/Fortran/gfortran/CMakeLists.txt --- a/Fortran/gfortran/CMakeLists.txt +++ b/Fortran/gfortran/CMakeLists.txt @@ -260,6 +260,30 @@ list(APPEND SKIPPED ${SKIPPED_FILES}) list(APPEND FAILING ${FAILING_FILES}) + # do the same for any requested feature extentions + foreach(feature ${TEST_SUITE_FORTRAN_FEATURES}) + set(UNSUPPORTED_FILES "") + set(UNIMPLEMENTED_FILES "") + set(SKIPPED_FILES "") + set(FAILING_FILES "") + include(${CMAKE_CURRENT_SOURCE_DIR}/DisabledFiles${feature}.cmake) + list(APPEND UNSUPPORTED ${UNSUPPORTED_FILES}) + list(APPEND UNIMPLEMENTED ${UNIMPLEMENTED_FILES}) + list(APPEND SKIPPED ${SKIPPED_FILES}) + list(APPEND FAILING ${FAILING_FILES}) + + # enable any tests that now pass for this feature + set(SUPPORTED_FILES "") + set(IMPLEMENTED_FILES "") + set(UNSKIPPED_FILES "") + set(PASSING_FILES "") + include(${CMAKE_CURRENT_SOURCE_DIR}/EnabledFiles${feature}.cmake) + list(REMOVE_ITEM UNSUPPORTED ${SUPPORTED_FILES}) + list(REMOVE_ITEM UNIMPLEMENTED ${IMPLEMENTED_FILES}) + list(REMOVE_ITEM SKIPPED ${UNSKIPPED_FILES}) + list(REMOVE_ITEM FAILING ${PASSING_FILES}) + endforeach() + # The TESTS variable is expected to be set before the macro is called. gfortran_find_test_files( "${UNSUPPORTED}" "${UNIMPLEMENTED}" "${SKIPPED}" "${FAILING}" "${TESTS}") diff --git a/Fortran/gfortran/README.md b/Fortran/gfortran/README.md --- a/Fortran/gfortran/README.md +++ b/Fortran/gfortran/README.md @@ -76,6 +76,7 @@ - `TEST_SUITE_FORTRAN_FORCE_UNIMPLEMENTED_TESTS`: Enable only the *unimplemented* tests. - `TEST_SUITE_FORTRAN_FORCE_SKIPPED_TESTS`: Enable only the *skipped* tests. - `TEST_SUITE_FORTRAN_FORCE_FAILING_TESTS`: Enable only the *failing* tests. +- `TEST_SUITE_FORTRAN_FEATURES`: see the features section below Some of the tests require the `ISO_Fortran_binding.h` header file. `cmake` will look for this file in the `include` directory of the `flang` installation @@ -109,6 +110,18 @@ are unrelated to the gfortran tests here. +### Testing non-standard features/flags + +Additional denylists for a particular feature can be included by creating +DisabledFilesFEATURE.cmake files (in the same format as those for the default +denylists), and adding FEATURE to `TEST_SUITE_FORTRAN_FEATURES`. Additional +compiler flags can be added using `CMAKE_Fortran_FLAGS`. + +For example, to test HLFIR one could use +`CMAKE_Fortran_Flags=-flang-experimental-hlfir` and +`TEST_SUITE_FORTRAN_FEATURES=HLFIR`. + + ### Notes for developers/maintainers ### Since `flang` is under active development, it is expected that features will be diff --git a/Fortran/gfortran/regression/DisabledFilesHLFIR.cmake b/Fortran/gfortran/regression/DisabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/DisabledFilesHLFIR.cmake @@ -0,0 +1,64 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# + +# These tests are skipped because they hit a 'not yet implemented' assertion +# in flang and thus fail to compile. They should be removed from here when the +# corresponding feature is implemented. Eventually, this variable should be +# removed altogether once all the missing features are implemented. +file(GLOB UNIMPLEMENTED_FILES CONFIGURE_DEPENDS + # unimplemented: lower descriptor designator to HLFIR value + allocatable_scalar_1.f90 + deferred_type_param_8.f90 + pointer_function_actual_1.f90 + + # unimplemented: compute elemental function result length parameters in HLFIR + array_temporaries_3.f90 + pure_byref_1.f90 + + # unimplemented: BIND(C) INTENT(OUT) allocatable deallocation in HLFIR + bind_c_procs_3.f90 + + # unimplemented: character conversion in HLFIR + widechar_2.f90 + widechar_7.f90 + widechar_intrinsics_10.f90 + + # unimplemented: pointer assignment inside FORALL + dependency_19.f90 + forall_3.f90 + pr49698.f90 +) + +# These tests are disabled because they fail when they are expected to pass. +file(GLOB FAILING_FILES CONFIGURE_DEPENDS + # --------------------------------------------------------------------------- + # + # These tests fail at runtime when they should pass. are likely a result of + # unimplemented features in the runtime, but they could also be bugs. If any + # will never pass with flang (if they use unsupported extensions for instance), + # they should be added to the Unsupported list. + + all_bounds_1.f90 + array_constructor_11.f90 + array_constructor_45.f90 + bounds_check_array_ctor_4.f90 + bounds_check_fail_3.f90 + bounds_check_12.f90 + function_optimize_11.f90 + maxloc_bounds_1.f90 + maxloc_bounds_2.f90 + maxloc_bounds_4.f90 + maxloc_bounds_5.f90 + maxloc_bounds_7.f90 + maxloc_bounds_8.f90 + pack_bounds_1.f90 + pr67524.f90 + spread_bounds_1.f90 + transfer_array_intrinsic_4.f90 + maxlocval_1.f90 +) diff --git a/Fortran/gfortran/regression/EnabledFilesHLFIR.cmake b/Fortran/gfortran/regression/EnabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/EnabledFilesHLFIR.cmake @@ -0,0 +1,37 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# + +# These are files which are skipped by default (see DisabledFiles.cmake) but +# are fixed by this feature +file(GLOB UNSKIPPED_FILES CONFIGURE_DEPENDS + achar_4.f90 + char_cast_2.f90 + deferred_character_8.f90 + dependency_23.f90 + interface_assignment_1.f90 + typebound_assignment_6.f90 + volatile10.f90 +) + +# These are files which fail by default (see DisabledFiles.cmake) but are fixed +# by this feature +file(GLOB PASSING_FILES CONFIGURE_DEPENDS + advance_5.f90 + aliasing_dummy_5.f90 + dependency_45.f90 + elemental_dependency_1.f90 + elemental_dependency_5.f90 + elemental_dependency_6.f90 + forall_12.f90 + forall_17.f90 + internal_pack_3.f90 + missing_optional_dummy_6.f90 + mvbits_4.f90 + pr50069_1.f90 + pr68227.f90 +) diff --git a/Fortran/gfortran/regression/analyzer/DisabledFilesHLFIR.cmake b/Fortran/gfortran/regression/analyzer/DisabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/analyzer/DisabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/regression/analyzer/EnabledFilesHLFIR.cmake b/Fortran/gfortran/regression/analyzer/EnabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/analyzer/EnabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/regression/asan/DisabledFilesHLFIR.cmake b/Fortran/gfortran/regression/asan/DisabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/asan/DisabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/regression/asan/EnabledFilesHLFIR.cmake b/Fortran/gfortran/regression/asan/EnabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/asan/EnabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/regression/c-interop/DisabledFilesHLFIR.cmake b/Fortran/gfortran/regression/c-interop/DisabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/c-interop/DisabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/regression/c-interop/EnabledFilesHLFIR.cmake b/Fortran/gfortran/regression/c-interop/EnabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/c-interop/EnabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/regression/coarray/DisabledFilesHLFIR.cmake b/Fortran/gfortran/regression/coarray/DisabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/coarray/DisabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/regression/coarray/EnabledFilesHLFIR.cmake b/Fortran/gfortran/regression/coarray/EnabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/coarray/EnabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/regression/debug/DisabledFilesHLFIR.cmake b/Fortran/gfortran/regression/debug/DisabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/debug/DisabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/regression/debug/EnabledFilesHLFIR.cmake b/Fortran/gfortran/regression/debug/EnabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/debug/EnabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/regression/g77/DisabledFilesHLFIR.cmake b/Fortran/gfortran/regression/g77/DisabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/g77/DisabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/regression/g77/EnabledFilesHLFIR.cmake b/Fortran/gfortran/regression/g77/EnabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/g77/EnabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/regression/goacc-gomp/DisabledFilesHLFIR.cmake b/Fortran/gfortran/regression/goacc-gomp/DisabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/goacc-gomp/DisabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/regression/goacc-gomp/EnabledFilesHLFIR.cmake b/Fortran/gfortran/regression/goacc-gomp/EnabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/goacc-gomp/EnabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/regression/goacc/DisabledFilesHLFIR.cmake b/Fortran/gfortran/regression/goacc/DisabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/goacc/DisabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/regression/goacc/EnabledFilesHLFIR.cmake b/Fortran/gfortran/regression/goacc/EnabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/goacc/EnabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/regression/gomp/DisabledFilesHLFIR.cmake b/Fortran/gfortran/regression/gomp/DisabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/gomp/DisabledFilesHLFIR.cmake @@ -0,0 +1,16 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# + +file(GLOB SKIPPED_FILES CONFIGURE_DEPENDS + # error: operand#0 does not dominate this use + do-1.f90 + nontemporal-1.f90 + pr59488-1.f90 + pr69183.f90 + pr78298.f90 +) diff --git a/Fortran/gfortran/regression/gomp/EnabledFilesHLFIR.cmake b/Fortran/gfortran/regression/gomp/EnabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/gomp/EnabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/regression/gomp/appendix-a/DisabledFilesHLFIR.cmake b/Fortran/gfortran/regression/gomp/appendix-a/DisabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/gomp/appendix-a/DisabledFilesHLFIR.cmake @@ -0,0 +1,45 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# + +file(GLOB UNIMPLEMENTED_FILES CONFIGURE_DEPENDS + # (hlfir+omp): unimplemented: Common block in privatization clause + a.23.4.f90 +) + +file(GLOB SKIPPED_FILES CONFIGURE_DEPENDS + # + # These tests fail when they should pass. + # + + # (hlfir+omp): operand#0 does not dominate this use + a.1.1.f90 + a.6.1.f90 + a.8.1.f90 + a.12.1.f90 + a.21.2.f90 + a.21.3.f90 + a.26.2.f90 + a.30.1.f90 + a.31.1.f90 + a.31.2.f90 + a.34.1.f90 + a.34.2.f90 + a.35.2.f90 + a.37.1.f90 + + # (hlfir+omp): builder.create() assertion failure + a.17.1.f90 + a.17.2.f90 + a.17.3.f90 + + # (hlfir+omp): Fortran::lower::genThreadprivateOp assertion failure + a.22.1.f90 + + # (hlfir+omp): "the thread private operation not created" assertion failure + a.32.1.f90 +) diff --git a/Fortran/gfortran/regression/gomp/appendix-a/EnabledFilesHLFIR.cmake b/Fortran/gfortran/regression/gomp/appendix-a/EnabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/gomp/appendix-a/EnabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/regression/ieee/DisabledFilesHLFIR.cmake b/Fortran/gfortran/regression/ieee/DisabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/ieee/DisabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/regression/ieee/EnabledFilesHLFIR.cmake b/Fortran/gfortran/regression/ieee/EnabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/ieee/EnabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/regression/lto/DisabledFilesHLFIR.cmake b/Fortran/gfortran/regression/lto/DisabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/lto/DisabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/regression/lto/EnabledFilesHLFIR.cmake b/Fortran/gfortran/regression/lto/EnabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/lto/EnabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/regression/ubsan/DisabledFilesHLFIR.cmake b/Fortran/gfortran/regression/ubsan/DisabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/ubsan/DisabledFilesHLFIR.cmake @@ -0,0 +1,16 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# + +# These tests are skipped because they hit a 'not yet implemented' assertion +# in flang and thus fail to compile. They should be removed from here when the +# corresponding feature is implemented. Eventually, this vairable should be +# removed altogether once all the missing features are implemented. +file (GLOB UNIMPLEMENTED_FILES + # unimplemented: BIND(C) INTENT(OUT) allocatable deallocation in HLFIR + bind-c-intent-out-2.f90 +) diff --git a/Fortran/gfortran/regression/ubsan/EnabledFilesHLFIR.cmake b/Fortran/gfortran/regression/ubsan/EnabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/ubsan/EnabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/regression/vect/DisabledFilesHLFIR.cmake b/Fortran/gfortran/regression/vect/DisabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/vect/DisabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/regression/vect/EnabledFilesHLFIR.cmake b/Fortran/gfortran/regression/vect/EnabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/regression/vect/EnabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/torture/compile/DisabledFilesHLFIR.cmake b/Fortran/gfortran/torture/compile/DisabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/torture/compile/DisabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/torture/compile/EnabledFilesHLFIR.cmake b/Fortran/gfortran/torture/compile/EnabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/torture/compile/EnabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# diff --git a/Fortran/gfortran/torture/execute/DisabledFilesHLFIR.cmake b/Fortran/gfortran/torture/execute/DisabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/torture/execute/DisabledFilesHLFIR.cmake @@ -0,0 +1,13 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===# + +# These tests are disabled because they fail at runtime when they should pass. +file(GLOB FAILING_FILES CONFIGURE_DEPENDS + constructor.f90 + getarg_1.f90 +) diff --git a/Fortran/gfortran/torture/execute/EnabledFilesHLFIR.cmake b/Fortran/gfortran/torture/execute/EnabledFilesHLFIR.cmake new file mode 100644 --- /dev/null +++ b/Fortran/gfortran/torture/execute/EnabledFilesHLFIR.cmake @@ -0,0 +1,7 @@ +#===------------------------------------------------------------------------===# +# +# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +# +#===------------------------------------------------------------------------===#