[llvm-branch-commits] [flang] [Flang] Move integration Lit tests to the right directory, NFC (PR #215536)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Aug 11 05:21:20 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-amdgpu
Author: Sergio Afonso (skatrak)
<details>
<summary>Changes</summary>
Flang unit tests that involve multiple stages of the compiler are intended to be placed in flang/test/Integration. However, many existing unit tests meeting this condition are currently located in the Lower subdirectory.
This patch moves all tests in Lower that emit LLVM IR from Fortran or run the FIR MLIR lowering pipeline via `tco` to Integration, and adds the corresponding notice at the top of each file.
Assisted-by: Claude Opus 4.8.
---
Patch is 86.02 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/215536.diff
78 Files Affected:
- (renamed) flang/test/Integration/Arm/arm-sve-vector-bits-vscale-range.f90 (+8)
- (renamed) flang/test/Integration/HLFIR/common-block-bindc-conflicts.f90 (+8)
- (renamed) flang/test/Integration/HLFIR/elemental-user-procedure-stacksave.f90 (+8)
- (renamed) flang/test/Integration/HLFIR/unroll-loops.fir (+8)
- (renamed) flang/test/Integration/HLFIR/where-implied-do-mask.f90 (+8)
- (renamed) flang/test/Integration/Intrinsics/fma.f90 (+8)
- (renamed) flang/test/Integration/MIF/coarray_allocation4.f90 (+8-1)
- (renamed) flang/test/Integration/MIF/coarray_allocation5.f90 (+8)
- (added) flang/test/Integration/MIF/coarray_dealloc_not_alloc.f90 (+21)
- (renamed) flang/test/Integration/OpenMP/atomic-read-complex.f90 (+8)
- (renamed) flang/test/Integration/OpenMP/atomic-write-complex.f90 (+8)
- (renamed) flang/test/Integration/OpenMP/declare-target-deferred-marking-reductions.f90 (+8)
- (renamed) flang/test/Integration/OpenMP/declare-target-deferred-marking.f90 (+8)
- (renamed) flang/test/Integration/OpenMP/declare-target-implicit-func-and-subr-cap-enter.f90 (+8)
- (renamed) flang/test/Integration/OpenMP/declare-target-implicit-func-and-subr-cap.f90 (+8)
- (renamed) flang/test/Integration/OpenMP/declare-target-implicit-tarop-cap.f90 (+8)
- (renamed) flang/test/Integration/OpenMP/declare-target-named-main-interface.f90 (+8)
- (renamed) flang/test/Integration/OpenMP/delayed-privatization-allocatable-firstprivate.f90 (+8)
- (renamed) flang/test/Integration/OpenMP/delayed-privatization-lower-allocatable-to-llvm.f90 (+8)
- (renamed) flang/test/Integration/OpenMP/math-amdgpu.f90 (+8)
- (renamed) flang/test/Integration/OpenMP/math-nvptx.f90 (+8)
- (added) flang/test/Integration/OpenMP/missing-inode.f90 (+16)
- (renamed) flang/test/Integration/OpenMP/parallel-reduction-mixed.f90 (+8)
- (renamed) flang/test/Integration/OpenMP/target-data-if-false.f90 (+8)
- (renamed) flang/test/Integration/OpenMP/target-data-skip-mapper-calls.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-intrinsics.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-mma-accumulator-move-clear.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-mma-assemble-disassemble.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-mma-outer-product-1.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-mma-outer-product-2.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-pwr10-vec-intrinsics.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-vec-abs.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-vec-add-and-mul-sub-xor.f90 (+8-1)
- (renamed) flang/test/Integration/PowerPC/ppc-vec-any.f90 (+8-1)
- (renamed) flang/test/Integration/PowerPC/ppc-vec-cmp.f90 (+8-1)
- (renamed) flang/test/Integration/PowerPC/ppc-vec-convert.f90 (+8-1)
- (renamed) flang/test/Integration/PowerPC/ppc-vec-cvf-elem-order.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-vec-extract-elem-order.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-vec-extract.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-vec-insert-elem-order.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-vec-insert.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-vec-load-elem-order.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-vec-load.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-vec-max-min-madd-nmsub.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-vec-merge-elem-order.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-vec-merge.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-vec-perm-elem-order.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-vec-perm.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-vec-sel.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-vec-shift-be-le.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-vec-shift.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-vec-splat-elem-order.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-vec-splat.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-vec-store-elem-order.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-vec-store.f90 (+8)
- (renamed) flang/test/Integration/PowerPC/ppc-vector-types.f90 (+8)
- (renamed) flang/test/Integration/RISCV/riscv-target-abi.f90 (+8)
- (renamed) flang/test/Integration/RISCV/riscv-vector-bits-vscale-range.f90 (+8)
- (renamed) flang/test/Integration/allocatable-polymorphic.f90 (+8)
- (renamed) flang/test/Integration/array-wide-char.f90 (+8)
- (renamed) flang/test/Integration/common-block.f90 (+8)
- (added) flang/test/Integration/complex-part.f90 (+19)
- (added) flang/test/Integration/const-arg-glob.f90 (+21)
- (renamed) flang/test/Integration/dense-array-any-rank.f90 (+8)
- (renamed) flang/test/Integration/derived-types-bindc.f90 (+8)
- (renamed) flang/test/Integration/forall/character-1.f90 (+8)
- (added) flang/test/Integration/intrinsic-procedure-wrappers.f90 (+18)
- (renamed) flang/test/Integration/large-data-threshold.f90 (+8)
- (renamed) flang/test/Integration/mcmodel.f90 (+8)
- (renamed) flang/test/Integration/real-descriptors.f90 (+8)
- (renamed) flang/test/Integration/safe-trampoline.f90 (+8)
- (added) flang/test/Integration/tune-cpu-llvm.f90 (+16)
- (removed) flang/test/Lower/MIF/coarray_dealloc_not_alloc.f90 (-13)
- (removed) flang/test/Lower/OpenMP/missing-inode.f90 (-8)
- (removed) flang/test/Lower/complex-part.f90 (-12)
- (removed) flang/test/Lower/const-arg-glob.f90 (-13)
- (removed) flang/test/Lower/intrinsic-procedure-wrappers.f90 (-10)
- (removed) flang/test/Lower/tune-cpu-llvm.f90 (-8)
``````````diff
diff --git a/flang/test/Lower/Arm/arm-sve-vector-bits-vscale-range.f90 b/flang/test/Integration/Arm/arm-sve-vector-bits-vscale-range.f90
similarity index 84%
rename from flang/test/Lower/Arm/arm-sve-vector-bits-vscale-range.f90
rename to flang/test/Integration/Arm/arm-sve-vector-bits-vscale-range.f90
index 9e09a41198626..92300935ea441 100644
--- a/flang/test/Lower/Arm/arm-sve-vector-bits-vscale-range.f90
+++ b/flang/test/Integration/Arm/arm-sve-vector-bits-vscale-range.f90
@@ -1,3 +1,11 @@
+!===----------------------------------------------------------------------===!
+! This directory can be used to add Integration tests involving multiple
+! stages of the compiler (for eg. from Fortran to LLVM IR). It should not
+! contain executable tests. We should only add tests here sparingly and only
+! if there is no other way to test. Repeat this message in each test that is
+! added to this directory and sub-directories.
+!===----------------------------------------------------------------------===!
+
! REQUIRES: aarch64-registered-target
! RUN: %flang_fc1 -triple aarch64-none-linux-gnu -target-feature +sve -mvscale-min=1 -mvscale-max=1 -emit-llvm -o - %s | FileCheck %s -D#VBITS=1
! RUN: %flang_fc1 -triple aarch64-none-linux-gnu -target-feature +sve -mvscale-min=2 -mvscale-max=2 -emit-llvm -o - %s | FileCheck %s -D#VBITS=2
diff --git a/flang/test/Lower/HLFIR/common-block-bindc-conflicts.f90 b/flang/test/Integration/HLFIR/common-block-bindc-conflicts.f90
similarity index 77%
rename from flang/test/Lower/HLFIR/common-block-bindc-conflicts.f90
rename to flang/test/Integration/HLFIR/common-block-bindc-conflicts.f90
index 07259539d851d..d03d033be0e14 100644
--- a/flang/test/Lower/HLFIR/common-block-bindc-conflicts.f90
+++ b/flang/test/Integration/HLFIR/common-block-bindc-conflicts.f90
@@ -1,3 +1,11 @@
+!===----------------------------------------------------------------------===!
+! This directory can be used to add Integration tests involving multiple
+! stages of the compiler (for eg. from Fortran to LLVM IR). It should not
+! contain executable tests. We should only add tests here sparingly and only
+! if there is no other way to test. Repeat this message in each test that is
+! added to this directory and sub-directories.
+!===----------------------------------------------------------------------===!
+
! Test the mixing BIND(C) and non BIND(C) common blocks.
! RUN: %flang_fc1 -emit-llvm %s -o - 2>&1 | FileCheck %s --check-prefix=UNDERSCORING
diff --git a/flang/test/Lower/HLFIR/elemental-user-procedure-stacksave.f90 b/flang/test/Integration/HLFIR/elemental-user-procedure-stacksave.f90
similarity index 57%
rename from flang/test/Lower/HLFIR/elemental-user-procedure-stacksave.f90
rename to flang/test/Integration/HLFIR/elemental-user-procedure-stacksave.f90
index 839342f2da6d8..c14b57a98ba0f 100644
--- a/flang/test/Lower/HLFIR/elemental-user-procedure-stacksave.f90
+++ b/flang/test/Integration/HLFIR/elemental-user-procedure-stacksave.f90
@@ -1,3 +1,11 @@
+!===----------------------------------------------------------------------===!
+! This directory can be used to add Integration tests involving multiple
+! stages of the compiler (for eg. from Fortran to LLVM IR). It should not
+! contain executable tests. We should only add tests here sparingly and only
+! if there is no other way to test. Repeat this message in each test that is
+! added to this directory and sub-directories.
+!===----------------------------------------------------------------------===!
+
! Check that stack save and restore needed for elemental function result
! allocation inside loops are not emitted directly in lowering, but inserted if
! needed in the stack-reclaim pass.
diff --git a/flang/test/Lower/HLFIR/unroll-loops.fir b/flang/test/Integration/HLFIR/unroll-loops.fir
similarity index 83%
rename from flang/test/Lower/HLFIR/unroll-loops.fir
rename to flang/test/Integration/HLFIR/unroll-loops.fir
index 4ea90b2f2f23f..2d9090fccbc46 100644
--- a/flang/test/Lower/HLFIR/unroll-loops.fir
+++ b/flang/test/Integration/HLFIR/unroll-loops.fir
@@ -1,3 +1,11 @@
+//===----------------------------------------------------------------------===//
+// This directory can be used to add Integration tests involving multiple
+// stages of the compiler (for eg. from Fortran to LLVM IR). It should not
+// contain executable tests. We should only add tests here sparingly and only
+// if there is no other way to test. Repeat this message in each test that is
+// added to this directory and sub-directories.
+//===----------------------------------------------------------------------===//
+
// DEFINE: %{triple} =
// DEFINE: %{check-unroll} = %flang_fc1 -emit-llvm -O1 -vectorize-loops -funroll-loops -mllvm -force-vector-width=2 -triple %{triple} -o- %s | FileCheck %s --check-prefixes=CHECK,UNROLL
// DEFINE: %{check-nounroll} = %flang_fc1 -emit-llvm -O1 -vectorize-loops -mllvm -force-vector-width=2 -triple %{triple} -o- %s | FileCheck %s --check-prefixes=CHECK,NO-UNROLL
diff --git a/flang/test/Lower/HLFIR/where-implied-do-mask.f90 b/flang/test/Integration/HLFIR/where-implied-do-mask.f90
similarity index 52%
rename from flang/test/Lower/HLFIR/where-implied-do-mask.f90
rename to flang/test/Integration/HLFIR/where-implied-do-mask.f90
index 395192c9a7c52..2600f5c59f538 100644
--- a/flang/test/Lower/HLFIR/where-implied-do-mask.f90
+++ b/flang/test/Integration/HLFIR/where-implied-do-mask.f90
@@ -1,3 +1,11 @@
+!===----------------------------------------------------------------------===!
+! This directory can be used to add Integration tests involving multiple
+! stages of the compiler (for eg. from Fortran to LLVM IR). It should not
+! contain executable tests. We should only add tests here sparingly and only
+! if there is no other way to test. Repeat this message in each test that is
+! added to this directory and sub-directories.
+!===----------------------------------------------------------------------===!
+
! RUN: bbc -emit-hlfir -o - %s | FileCheck %s
! RUN: %flang_fc1 -emit-llvm -o /dev/null %s
diff --git a/flang/test/Lower/Intrinsics/fma.f90 b/flang/test/Integration/Intrinsics/fma.f90
similarity index 64%
rename from flang/test/Lower/Intrinsics/fma.f90
rename to flang/test/Integration/Intrinsics/fma.f90
index 0f06e81b1d5c5..44c374c1c343c 100644
--- a/flang/test/Lower/Intrinsics/fma.f90
+++ b/flang/test/Integration/Intrinsics/fma.f90
@@ -1,3 +1,11 @@
+!===----------------------------------------------------------------------===!
+! This directory can be used to add Integration tests involving multiple
+! stages of the compiler (for eg. from Fortran to LLVM IR). It should not
+! contain executable tests. We should only add tests here sparingly and only
+! if there is no other way to test. Repeat this message in each test that is
+! added to this directory and sub-directories.
+!===----------------------------------------------------------------------===!
+
! RUN: bbc -emit-fir %s -o - | FileCheck --check-prefix=CHECK-FIR %s
! RUN: %flang_fc1 -emit-llvm %s -o - | FileCheck --check-prefix=CHECK-LLVMIR %s
diff --git a/flang/test/Lower/MIF/coarray_allocation4.f90 b/flang/test/Integration/MIF/coarray_allocation4.f90
similarity index 90%
rename from flang/test/Lower/MIF/coarray_allocation4.f90
rename to flang/test/Integration/MIF/coarray_allocation4.f90
index 450fad07f9933..c98ae9dd01612 100644
--- a/flang/test/Lower/MIF/coarray_allocation4.f90
+++ b/flang/test/Integration/MIF/coarray_allocation4.f90
@@ -1,3 +1,11 @@
+!===----------------------------------------------------------------------===!
+! This directory can be used to add Integration tests involving multiple
+! stages of the compiler (for eg. from Fortran to LLVM IR). It should not
+! contain executable tests. We should only add tests here sparingly and only
+! if there is no other way to test. Repeat this message in each test that is
+! added to this directory and sub-directories.
+!===----------------------------------------------------------------------===!
+
! RUN: %flang_fc1 -emit-hlfir -fcoarray %s -o - 2>&1 | FileCheck %s
! RUN: %flang_fc1 -emit-llvm -fcoarray %s -o - 2>&1 | FileCheck %s --check-prefix=LLVM
@@ -73,4 +81,3 @@ program main
! CHECK: fir.global internal @_QFtest_coarray_saveEn : f32
! CHECK: fir.global internal @_QFtest_coarray_saveEp : f32
-
diff --git a/flang/test/Lower/MIF/coarray_allocation5.f90 b/flang/test/Integration/MIF/coarray_allocation5.f90
similarity index 75%
rename from flang/test/Lower/MIF/coarray_allocation5.f90
rename to flang/test/Integration/MIF/coarray_allocation5.f90
index c1a7958b67454..03b37768759d4 100644
--- a/flang/test/Lower/MIF/coarray_allocation5.f90
+++ b/flang/test/Integration/MIF/coarray_allocation5.f90
@@ -1,3 +1,11 @@
+!===----------------------------------------------------------------------===!
+! This directory can be used to add Integration tests involving multiple
+! stages of the compiler (for eg. from Fortran to LLVM IR). It should not
+! contain executable tests. We should only add tests here sparingly and only
+! if there is no other way to test. Repeat this message in each test that is
+! added to this directory and sub-directories.
+!===----------------------------------------------------------------------===!
+
! RUN: %flang_fc1 -emit-hlfir -fcoarray %s -o - | FileCheck %s
! RUN: %flang_fc1 -emit-llvm -fcoarray %s -o - 2>&1 | FileCheck %s --check-prefix=LLVM
diff --git a/flang/test/Integration/MIF/coarray_dealloc_not_alloc.f90 b/flang/test/Integration/MIF/coarray_dealloc_not_alloc.f90
new file mode 100644
index 0000000000000..a58ec693ac5ba
--- /dev/null
+++ b/flang/test/Integration/MIF/coarray_dealloc_not_alloc.f90
@@ -0,0 +1,21 @@
+!===----------------------------------------------------------------------===!
+! This directory can be used to add Integration tests involving multiple
+! stages of the compiler (for eg. from Fortran to LLVM IR). It should not
+! contain executable tests. We should only add tests here sparingly and only
+! if there is no other way to test. Repeat this message in each test that is
+! added to this directory and sub-directories.
+!===----------------------------------------------------------------------===!
+
+! RUN: %flang_fc1 -emit-llvm -fcoarray %s -o - 2>&1 | FileCheck %s --check-prefix=LLVM
+
+! LLVM: @_QFB1Ekk_coarray_handle = linkonce global %_QM__fortran_builtinsT__builtin_prif_coarray_handle_type zeroinitializer{{.*}}
+
+! LLVM-LABEL: @_QQmain()
+! LLVM: call void @_QMprifPprif_deallocate_coarray(ptr @_QFB1Ekk_coarray_handle, ptr null, ptr null, ptr null)
+
+
+block
+integer :: kk
+allocatable :: kk(:)[:]
+endblock
+end
diff --git a/flang/test/Lower/OpenMP/atomic-read-complex.f90 b/flang/test/Integration/OpenMP/atomic-read-complex.f90
similarity index 67%
rename from flang/test/Lower/OpenMP/atomic-read-complex.f90
rename to flang/test/Integration/OpenMP/atomic-read-complex.f90
index cd20c5d0316b7..9b8dc463c4351 100644
--- a/flang/test/Lower/OpenMP/atomic-read-complex.f90
+++ b/flang/test/Integration/OpenMP/atomic-read-complex.f90
@@ -1,3 +1,11 @@
+!===----------------------------------------------------------------------===!
+! This directory can be used to add Integration tests involving multiple
+! stages of the compiler (for eg. from Fortran to LLVM IR). It should not
+! contain executable tests. We should only add tests here sparingly and only
+! if there is no other way to test. Repeat this message in each test that is
+! added to this directory and sub-directories.
+!===----------------------------------------------------------------------===!
+
! Test lowering of atomic read to LLVM IR for complex types.
! This is a regression test for issue #165184.
diff --git a/flang/test/Lower/OpenMP/atomic-write-complex.f90 b/flang/test/Integration/OpenMP/atomic-write-complex.f90
similarity index 67%
rename from flang/test/Lower/OpenMP/atomic-write-complex.f90
rename to flang/test/Integration/OpenMP/atomic-write-complex.f90
index 4e975bf2c9c6a..ef7629917cd90 100644
--- a/flang/test/Lower/OpenMP/atomic-write-complex.f90
+++ b/flang/test/Integration/OpenMP/atomic-write-complex.f90
@@ -1,3 +1,11 @@
+!===----------------------------------------------------------------------===!
+! This directory can be used to add Integration tests involving multiple
+! stages of the compiler (for eg. from Fortran to LLVM IR). It should not
+! contain executable tests. We should only add tests here sparingly and only
+! if there is no other way to test. Repeat this message in each test that is
+! added to this directory and sub-directories.
+!===----------------------------------------------------------------------===!
+
! Test lowering of atomic write to LLVM IR for complex types.
! This is a regression test for issue #165184.
diff --git a/flang/test/Lower/OpenMP/declare-target-deferred-marking-reductions.f90 b/flang/test/Integration/OpenMP/declare-target-deferred-marking-reductions.f90
similarity index 72%
rename from flang/test/Lower/OpenMP/declare-target-deferred-marking-reductions.f90
rename to flang/test/Integration/OpenMP/declare-target-deferred-marking-reductions.f90
index 4741de56ff704..124ec4b8ffbd7 100644
--- a/flang/test/Lower/OpenMP/declare-target-deferred-marking-reductions.f90
+++ b/flang/test/Integration/OpenMP/declare-target-deferred-marking-reductions.f90
@@ -1,3 +1,11 @@
+!===----------------------------------------------------------------------===!
+! This directory can be used to add Integration tests involving multiple
+! stages of the compiler (for eg. from Fortran to LLVM IR). It should not
+! contain executable tests. We should only add tests here sparingly and only
+! if there is no other way to test. Repeat this message in each test that is
+! added to this directory and sub-directories.
+!===----------------------------------------------------------------------===!
+
!RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-version=52 %s -o - | tco -test-gen | FileCheck %s
!RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-version=52 -fopenmp-is-device %s -o - | tco -test-gen | FileCheck %s
diff --git a/flang/test/Lower/OpenMP/declare-target-deferred-marking.f90 b/flang/test/Integration/OpenMP/declare-target-deferred-marking.f90
similarity index 84%
rename from flang/test/Lower/OpenMP/declare-target-deferred-marking.f90
rename to flang/test/Integration/OpenMP/declare-target-deferred-marking.f90
index 9fdfcdae3e7e1..8be7efd2619f1 100644
--- a/flang/test/Lower/OpenMP/declare-target-deferred-marking.f90
+++ b/flang/test/Integration/OpenMP/declare-target-deferred-marking.f90
@@ -1,3 +1,11 @@
+!===----------------------------------------------------------------------===!
+! This directory can be used to add Integration tests involving multiple
+! stages of the compiler (for eg. from Fortran to LLVM IR). It should not
+! contain executable tests. We should only add tests here sparingly and only
+! if there is no other way to test. Repeat this message in each test that is
+! added to this directory and sub-directories.
+!===----------------------------------------------------------------------===!
+
!RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-version=52 %s -o - | tco -test-gen | FileCheck %s --check-prefixes ALL,HOST
!RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-version=52 -fopenmp-is-device %s -o - | tco -test-gen | FileCheck %s --check-prefixes ALL
diff --git a/flang/test/Lower/OpenMP/declare-target-implicit-func-and-subr-cap-enter.f90 b/flang/test/Integration/OpenMP/declare-target-implicit-func-and-subr-cap-enter.f90
similarity index 94%
rename from flang/test/Lower/OpenMP/declare-target-implicit-func-and-subr-cap-enter.f90
rename to flang/test/Integration/OpenMP/declare-target-implicit-func-and-subr-cap-enter.f90
index 0d16e5bc1b0d1..225a8f4bec855 100644
--- a/flang/test/Lower/OpenMP/declare-target-implicit-func-and-subr-cap-enter.f90
+++ b/flang/test/Integration/OpenMP/declare-target-implicit-func-and-subr-cap-enter.f90
@@ -1,3 +1,11 @@
+!===----------------------------------------------------------------------===!
+! This directory can be used to add Integration tests involving multiple
+! stages of the compiler (for eg. from Fortran to LLVM IR). It should not
+! contain executable tests. We should only add tests here sparingly and only
+! if there is no other way to test. Repeat this message in each test that is
+! added to this directory and sub-directories.
+!===----------------------------------------------------------------------===!
+
!RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-version=52 %s -o - | tco -test-gen | FileCheck %s
!RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-version=52 -fopenmp-is-target-device %s -o - | tco -test-gen | FileCheck %s --check-prefix=DEVICE
!RUN: bbc -emit-hlfir -fopenmp -fopenmp-version=52 %s -o - | tco -test-gen | FileCheck %s
diff --git a/flang/test/Lower/OpenMP/declare-target-implicit-func-and-subr-cap.f90 b/flang/test/Integration/OpenMP/declare-target-implicit-func-and-subr-cap.f90
similarity index 95%
rename from flang/test/Lower/OpenMP/declare-target-implicit-func-and-subr-cap.f90
rename to flang/test/Integration/OpenMP/declare-target-implicit-func-and-subr-cap.f90
index dbce61c44e85b..36954739a916d 100644
--- a/flang/test/Lower/OpenMP/declare-target-implicit-func-and-subr-cap.f90
+++ b/flang/test/Integration/OpenMP/declare-target-implicit-func-and-subr-cap.f90
@@ -1,3 +1,11 @@
+!===----------------------------------------------------------------------===!
+! This directory can be used to add Integration tests involving multiple
+! stages of the compiler (for eg. from Fortran to LLVM IR). It should not
+! contain executable tests. We should only add tests here sparingly and only
+! if there is no other way to test. Repeat this message in each test that is
+! added to this directory and sub-directories.
+!===----------------------------------------------------------------------===!
+
!RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-version=50 %s -o - | tco -test-gen | FileCheck %s
!RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-version=50 -fopenmp-is-target-device %s -o - | tco -test-gen | FileCheck %s --check-prefix=DEVICE
!RUN: bbc -emit-hlfir -fopenmp -fopenmp-version=50 %s -o - | tco -test-gen | FileCheck %s
diff --git a/flang/test/Lower/OpenMP/declare-target-implicit-tarop-cap.f90 b/flang/test/Integration/OpenMP/declare-target-implicit-tarop-cap.f90
similarity index 89%
rename from flang/test/Lower/OpenMP/declare-target-implicit-tarop-cap.f90
rename to flang/test/Integration/OpenMP/declare-target-implicit-tarop-cap.f90
index f89484d988d2d..0d527df426a2d 100644
--- a/flang/test/Lower/OpenMP/declare-target-implicit-tarop-cap.f90
+++ b/flang/test/Integration/OpenMP/declare-target-implicit-tarop-cap.f90
@@ -1,3 +1,11 @@
+!===----------------------------------------------------------------------===!
+! This directory can be used to add Integration tests involving multiple
+! stages of the compiler (for eg. from Fortran to LLVM IR). It should not
+! contain executable tests. We should only add tests here sparingly and only
+! if there is no other way to test. Repeat this message in each test that is
+! added to this directory and sub-directories.
+!===----------------------------------------------------------------------===!
+
!RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-version=52 %s -o - | tco -test-gen | FileCheck %s
!RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-version=52 -fopenmp-is-device %s -o - | tco -test-gen | FileCheck %s --check-prefix=DEVICE
!RUN: bbc -emit-hlfir -fopenmp -fopenmp-version=52 %s -o - | tco -test-gen | FileCheck %s
diff --git a/flang/test/Lower/OpenMP/declare-target-named-main-interface.f90 b/flang/test/Integration/OpenMP/declare-target-named-main-interface.f90
similarity index 64%
rename from flang/test/Lower/OpenMP/declare-target-named-main-interface.f90
rename to flang/test/Integration/OpenMP/declare-target-named-main-interface.f90
index 19d245225d53d..5303260e5e45e 100644
--- a/flang/test/Lower/OpenMP/declare-target-named-main-interface.f90
+++ b/flang/test/Integration/OpenMP/declare-target-named-main-interface.f90
@@ -1,3 +1,11 @@
+!===----------------------------------------------------------------------===!
+! This directory can be used to add Integration tests involving multiple
+! stages of the compiler (for eg. from Fortran to LLVM IR). It should not
+! contain executable tests. We should only add tests here sparingly and only
+! if there is no other way to te...
[truncated]
``````````
</details>
https://github.com/llvm/llvm-project/pull/215536
More information about the llvm-branch-commits
mailing list