Skip to content

Conversation

Meinersbur
Copy link
Member

@Meinersbur Meinersbur commented Jul 25, 2025

In addition to existing C/C++ tests, add Fortran-based tests. Fortran tests will only run if a Fortran compiler is found. The first test is for the unroll construct added in #144785.

@Meinersbur Meinersbur changed the title [OpenMP] Add Fortran tests [OpenMP] Allow Fortran tests Aug 28, 2025
@Meinersbur Meinersbur force-pushed the openmp_fortran-tests branch from 37c2993 to 70dbb33 Compare August 28, 2025 10:44
@Meinersbur Meinersbur marked this pull request as ready for review August 28, 2025 10:54
@llvmbot llvmbot added openmp:libomp OpenMP host runtime openmp:libomptarget OpenMP offload runtime labels Aug 28, 2025
Copy link
Contributor

@mjklemm mjklemm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder why the test below is a runtime test. This seems like a test that should into the Flang tests folder instead.

@Meinersbur
Copy link
Member Author

Meinersbur commented Aug 28, 2025

The Flang (and Clang) test folder does not contain end2end tests, and cannot as it requires running the executable which is not necessarily possible on the build machine (e.g. building a cross-compiler).

Tests of Flang/Clang as unit/regression tests has the form of compiling the program to LLVM-IR, and using FileCheck to verify its output. This is done as well, but those do not make it easy to see whether the output is actually correct. And so it happened that code passed reviews that was obviously broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openmp:libomp OpenMP host runtime openmp:libomptarget OpenMP offload runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants