[flang-commits] [flang] b7ddb97 - [flang][OpenMP]Add TODO checking for scope allocate and firstprivate (#116801)
via flang-commits
flang-commits at lists.llvm.org
Wed Nov 20 01:24:03 PST 2024
Author: Mats Petersson
Date: 2024-11-20T09:24:00Z
New Revision: b7ddb97ac2cfb57f17c7f68815606cbd57918417
URL: https://github.com/llvm/llvm-project/commit/b7ddb97ac2cfb57f17c7f68815606cbd57918417
DIFF: https://github.com/llvm/llvm-project/commit/b7ddb97ac2cfb57f17c7f68815606cbd57918417.diff
LOG: [flang][OpenMP]Add TODO checking for scope allocate and firstprivate (#116801)
For the situation where scope is implemented to 5.1 standard, check that
the 5.2 are still "not yet implemented" (or some other partial
implementation).
Added:
flang/test/Lower/OpenMP/Todo/scope-allocate.f90
flang/test/Lower/OpenMP/Todo/scope-firstprivate.f90
Modified:
Removed:
################################################################################
diff --git a/flang/test/Lower/OpenMP/Todo/scope-allocate.f90 b/flang/test/Lower/OpenMP/Todo/scope-allocate.f90
new file mode 100644
index 00000000000000..5a834c81a852cf
--- /dev/null
+++ b/flang/test/Lower/OpenMP/Todo/scope-allocate.f90
@@ -0,0 +1,12 @@
+! RUN: %not_todo_cmd %flang_fc1 -emit-fir -fopenmp -o - %s -fopenmp-version=52 2>&1 | FileCheck %s
+
+! CHECK: not yet implemented: Scope construct
+program omp_scope
+ integer i
+ i = 10
+
+ !$omp scope allocate(x) private(x)
+ print *, "omp scope", i
+ !$omp end scope
+
+end program omp_scope
diff --git a/flang/test/Lower/OpenMP/Todo/scope-firstprivate.f90 b/flang/test/Lower/OpenMP/Todo/scope-firstprivate.f90
new file mode 100644
index 00000000000000..87bcecb817da49
--- /dev/null
+++ b/flang/test/Lower/OpenMP/Todo/scope-firstprivate.f90
@@ -0,0 +1,12 @@
+! RUN: %not_todo_cmd %flang_fc1 -emit-fir -fopenmp -o - %s -fopenmp-version=52 2>&1 | FileCheck %s
+
+! CHECK: not yet implemented: Scope construct
+program omp_scope
+ integer i
+ i = 10
+
+ !$omp scope firstprivate(x)
+ print *, "omp scope", i
+ !$omp end scope
+
+end program omp_scope
More information about the flang-commits
mailing list