[Openmp-commits] [openmp] 1d3366b - [OpenMP][NFC] Explicit run-checks for OpenMP 6.0 loop-splitting (#221651)

via Openmp-commits openmp-commits at lists.llvm.org
Fri Sep 11 07:37:08 PDT 2026


Author: Amit Tiwari
Date: 2026-09-11T20:06:52+05:30
New Revision: 1d3366b2f4b641cdff078d51d49cfc849dacbf84

URL: https://github.com/llvm/llvm-project/commit/1d3366b2f4b641cdff078d51d49cfc849dacbf84
DIFF: https://github.com/llvm/llvm-project/commit/1d3366b2f4b641cdff078d51d49cfc849dacbf84.diff

LOG: [OpenMP][NFC] Explicit run-checks for OpenMP 6.0 loop-splitting (#221651)

Move OpenMP 6.0 test flag to RUN lines for loop splitting

Added: 
    

Modified: 
    openmp/runtime/test/transform/split/fill_first.c
    openmp/runtime/test/transform/split/foreach.cpp
    openmp/runtime/test/transform/split/intfor.c
    openmp/runtime/test/transform/split/intfor_negstart.c
    openmp/runtime/test/transform/split/iterfor.cpp
    openmp/runtime/test/transform/split/leq_bound.c
    openmp/runtime/test/transform/split/negative_incr.c
    openmp/runtime/test/transform/split/nonconstant_incr.c
    openmp/runtime/test/transform/split/parallel-split-intfor.c
    openmp/runtime/test/transform/split/single_fill.c
    openmp/runtime/test/transform/split/three_segments.c
    openmp/runtime/test/transform/split/trip_one.c
    openmp/runtime/test/transform/split/unsigned_iv.c
    openmp/runtime/test/transform/split/zero_first_segment.c

Removed: 
    openmp/runtime/test/transform/split/lit.local.cfg


################################################################################
diff  --git a/openmp/runtime/test/transform/split/fill_first.c b/openmp/runtime/test/transform/split/fill_first.c
index 12568f6896d18..3afa0fc71a51a 100644
--- a/openmp/runtime/test/transform/split/fill_first.c
+++ b/openmp/runtime/test/transform/split/fill_first.c
@@ -1,4 +1,5 @@
-// RUN: %libomp-compile-and-run | FileCheck %s --match-full-lines
+// RUN: %libomp-compile -fopenmp-version=60 && %libomp-run \
+// RUN:   | FileCheck %s --match-full-lines
 
 #include <stdlib.h>
 #include <stdio.h>

diff  --git a/openmp/runtime/test/transform/split/foreach.cpp b/openmp/runtime/test/transform/split/foreach.cpp
index 846449b9d86ca..3536d9d59e678 100644
--- a/openmp/runtime/test/transform/split/foreach.cpp
+++ b/openmp/runtime/test/transform/split/foreach.cpp
@@ -1,4 +1,5 @@
-// RUN: %libomp-cxx-compile-and-run | FileCheck %s --match-full-lines
+// RUN: %libomp-cxx-compile -fopenmp-version=60 && %libomp-run \
+// RUN:   | FileCheck %s --match-full-lines
 
 #include <cstdlib>
 #include <cstdio>

diff  --git a/openmp/runtime/test/transform/split/intfor.c b/openmp/runtime/test/transform/split/intfor.c
index 321fa5ca51f08..c345bd0d4be64 100644
--- a/openmp/runtime/test/transform/split/intfor.c
+++ b/openmp/runtime/test/transform/split/intfor.c
@@ -1,4 +1,5 @@
-// RUN: %libomp-compile-and-run | FileCheck %s --match-full-lines
+// RUN: %libomp-compile -fopenmp-version=60 && %libomp-run \
+// RUN:   | FileCheck %s --match-full-lines
 
 #include <stdlib.h>
 #include <stdio.h>

diff  --git a/openmp/runtime/test/transform/split/intfor_negstart.c b/openmp/runtime/test/transform/split/intfor_negstart.c
index 1e3860bba2d53..4fc45a1dc925e 100644
--- a/openmp/runtime/test/transform/split/intfor_negstart.c
+++ b/openmp/runtime/test/transform/split/intfor_negstart.c
@@ -1,4 +1,5 @@
-// RUN: %libomp-compile-and-run | FileCheck %s --match-full-lines
+// RUN: %libomp-compile -fopenmp-version=60 && %libomp-run \
+// RUN:   | FileCheck %s --match-full-lines
 
 #include <stdlib.h>
 #include <stdio.h>

diff  --git a/openmp/runtime/test/transform/split/iterfor.cpp b/openmp/runtime/test/transform/split/iterfor.cpp
index 60ecbb374f6e3..3670a43e81e9a 100644
--- a/openmp/runtime/test/transform/split/iterfor.cpp
+++ b/openmp/runtime/test/transform/split/iterfor.cpp
@@ -1,4 +1,5 @@
-// RUN: %libomp-cxx20-compile-and-run | FileCheck %s --match-full-lines
+// RUN: %libomp-cxx20-compile -fopenmp-version=60 && %libomp-run \
+// RUN:   | FileCheck %s --match-full-lines
 
 #include <cstdlib>
 #include <cstdarg>

diff  --git a/openmp/runtime/test/transform/split/leq_bound.c b/openmp/runtime/test/transform/split/leq_bound.c
index 81061fe430ae4..95ca1c2227c53 100644
--- a/openmp/runtime/test/transform/split/leq_bound.c
+++ b/openmp/runtime/test/transform/split/leq_bound.c
@@ -1,4 +1,5 @@
-// RUN: %libomp-compile-and-run | FileCheck %s --match-full-lines
+// RUN: %libomp-compile -fopenmp-version=60 && %libomp-run \
+// RUN:   | FileCheck %s --match-full-lines
 
 #include <stdlib.h>
 #include <stdio.h>

diff  --git a/openmp/runtime/test/transform/split/lit.local.cfg b/openmp/runtime/test/transform/split/lit.local.cfg
deleted file mode 100644
index beb73ea04165d..0000000000000
--- a/openmp/runtime/test/transform/split/lit.local.cfg
+++ /dev/null
@@ -1,5 +0,0 @@
-# The split directive's counts clause requires OpenMP 6.0.
-for i, (pattern, replacement) in enumerate(config.substitutions):
-    if pattern == "%openmp_flags":
-        config.substitutions[i] = (pattern, replacement + " -fopenmp-version=60")
-        break

diff  --git a/openmp/runtime/test/transform/split/negative_incr.c b/openmp/runtime/test/transform/split/negative_incr.c
index ce537db067f06..301c6a55f0be0 100644
--- a/openmp/runtime/test/transform/split/negative_incr.c
+++ b/openmp/runtime/test/transform/split/negative_incr.c
@@ -1,4 +1,5 @@
-// RUN: %libomp-compile-and-run | FileCheck %s --match-full-lines
+// RUN: %libomp-compile -fopenmp-version=60 && %libomp-run \
+// RUN:   | FileCheck %s --match-full-lines
 
 #include <stdlib.h>
 #include <stdio.h>

diff  --git a/openmp/runtime/test/transform/split/nonconstant_incr.c b/openmp/runtime/test/transform/split/nonconstant_incr.c
index d594a437f2ab2..c067e5ef00ab5 100644
--- a/openmp/runtime/test/transform/split/nonconstant_incr.c
+++ b/openmp/runtime/test/transform/split/nonconstant_incr.c
@@ -1,4 +1,5 @@
-// RUN: %libomp-compile-and-run | FileCheck %s --match-full-lines
+// RUN: %libomp-compile -fopenmp-version=60 && %libomp-run \
+// RUN:   | FileCheck %s --match-full-lines
 
 #include <stdlib.h>
 #include <stdio.h>

diff  --git a/openmp/runtime/test/transform/split/parallel-split-intfor.c b/openmp/runtime/test/transform/split/parallel-split-intfor.c
index 0b9bd7df5027e..e3f3dc54dd459 100644
--- a/openmp/runtime/test/transform/split/parallel-split-intfor.c
+++ b/openmp/runtime/test/transform/split/parallel-split-intfor.c
@@ -1,4 +1,5 @@
-// RUN: %libomp-compile-and-run | FileCheck %s --match-full-lines
+// RUN: %libomp-compile -fopenmp-version=60 && %libomp-run \
+// RUN:   | FileCheck %s --match-full-lines
 
 #include <stdlib.h>
 #include <stdio.h>

diff  --git a/openmp/runtime/test/transform/split/single_fill.c b/openmp/runtime/test/transform/split/single_fill.c
index 4ef10bf3b4d26..4383b3a545557 100644
--- a/openmp/runtime/test/transform/split/single_fill.c
+++ b/openmp/runtime/test/transform/split/single_fill.c
@@ -1,4 +1,5 @@
-// RUN: %libomp-compile-and-run | FileCheck %s --match-full-lines
+// RUN: %libomp-compile -fopenmp-version=60 && %libomp-run \
+// RUN:   | FileCheck %s --match-full-lines
 
 #include <stdlib.h>
 #include <stdio.h>

diff  --git a/openmp/runtime/test/transform/split/three_segments.c b/openmp/runtime/test/transform/split/three_segments.c
index f34b640a86710..405bcdee19b72 100644
--- a/openmp/runtime/test/transform/split/three_segments.c
+++ b/openmp/runtime/test/transform/split/three_segments.c
@@ -1,4 +1,5 @@
-// RUN: %libomp-compile-and-run | FileCheck %s --match-full-lines
+// RUN: %libomp-compile -fopenmp-version=60 && %libomp-run \
+// RUN:   | FileCheck %s --match-full-lines
 
 #include <stdlib.h>
 #include <stdio.h>

diff  --git a/openmp/runtime/test/transform/split/trip_one.c b/openmp/runtime/test/transform/split/trip_one.c
index 5f00d25239685..30b1e9d790477 100644
--- a/openmp/runtime/test/transform/split/trip_one.c
+++ b/openmp/runtime/test/transform/split/trip_one.c
@@ -1,4 +1,5 @@
-// RUN: %libomp-compile-and-run | FileCheck %s --match-full-lines
+// RUN: %libomp-compile -fopenmp-version=60 && %libomp-run \
+// RUN:   | FileCheck %s --match-full-lines
 
 // Tiny trip counts: trip=1 with counts(1, omp_fill) and trip=0.
 

diff  --git a/openmp/runtime/test/transform/split/unsigned_iv.c b/openmp/runtime/test/transform/split/unsigned_iv.c
index ad096122d8cea..a02df033b6f80 100644
--- a/openmp/runtime/test/transform/split/unsigned_iv.c
+++ b/openmp/runtime/test/transform/split/unsigned_iv.c
@@ -1,4 +1,5 @@
-// RUN: %libomp-compile-and-run | FileCheck %s --match-full-lines
+// RUN: %libomp-compile -fopenmp-version=60 && %libomp-run \
+// RUN:   | FileCheck %s --match-full-lines
 
 #include <stdlib.h>
 #include <stdio.h>

diff  --git a/openmp/runtime/test/transform/split/zero_first_segment.c b/openmp/runtime/test/transform/split/zero_first_segment.c
index 09cc526ed81ec..6cf31afcf2dbf 100644
--- a/openmp/runtime/test/transform/split/zero_first_segment.c
+++ b/openmp/runtime/test/transform/split/zero_first_segment.c
@@ -1,4 +1,5 @@
-// RUN: %libomp-compile-and-run | FileCheck %s --match-full-lines
+// RUN: %libomp-compile -fopenmp-version=60 && %libomp-run \
+// RUN:   | FileCheck %s --match-full-lines
 
 #include <stdlib.h>
 #include <stdio.h>


        


More information about the Openmp-commits mailing list