[flang-commits] [flang] [Flang][OpenMP] Add semantic support for Loop Sequences and OpenMP loop fuse (PR #161213)

Michael Kruse via flang-commits flang-commits at lists.llvm.org
Wed Oct 1 05:07:07 PDT 2025


================
@@ -0,0 +1,31 @@
+! Testing the Semantics of clauses on loop transformation directives
+
+!RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=60
+
+
+subroutine loop_transformation_construct1
+  implicit none
+  integer, parameter:: i = 5
+  integer :: x
+  integer :: v(i)
+
+  !$omp fuse looprange(1,2)
+  do x = 1, i
+    v(x) = x * 2
+  end do
+  do x = 1, i
+    v(x) = x * 2
+  end do
+  !$omp end fuse
----------------
Meinersbur wrote:

`test_errors.py` tests only test errors, no point in having regular code in here.

https://github.com/llvm/llvm-project/pull/161213


More information about the flang-commits mailing list