From 32b984808bb3c97b33863ac59ab48d030471279f Mon Sep 17 00:00:00 2001 From: Tarun Prabhu Date: Mon, 5 Feb 2024 11:56:19 -0700 Subject: [PATCH] [flang][docs] Update flang documentation regarding the test suite Remove redundant reference to flang not being able to generate code. Add a reference to the gfortran tests that are part of the LLVM Test Suite. --- flang/docs/FortranLLVMTestSuite.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/flang/docs/FortranLLVMTestSuite.md b/flang/docs/FortranLLVMTestSuite.md index 62459e6a7b7020..f07d415520a874 100644 --- a/flang/docs/FortranLLVMTestSuite.md +++ b/flang/docs/FortranLLVMTestSuite.md @@ -12,12 +12,6 @@ first-time users read through [LLVM Test Suite Guide](https://llvm.org/docs/TestSuiteGuide.html) which describes the organizational structure of the test suite and how to run it. -Although the Flang driver is unable to generate code at this time, we -are neverthelesss incrementally adding Fortran tests into the LLVM -Test Suite. We are currently testing against GFortran while we make -progress towards completing the new Flang driver with full -code-generation capabilities. - ## Running the LLVM test-suite with Fortran Fortran support can be enabled by setting the following CMake variables: @@ -63,3 +57,12 @@ cmake -G "Ninja" -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ \ -DTEST_SUITE_FORTRAN:STRING=ON \ -DTEST_SUITE_SPEC2017_ROOT= .. ``` + +## Running the gfortran tests + +Tests from the gfortran test suite have been imported into the LLVM Test Suite. +The tests will be run automatically if the test suite is built following the +instructions described [above](#running-the-LLVM-test-suite-with-fortran). +There are additional configure-time options that can be used with the gfortran +tests. More details about those options and their purpose can be found in +[`Fortran/gfortran/README.md`](https://github.com/llvm/llvm-test-suite/tree/main/Fortran/gfortran/README.md)`.