[flang-commits] [flang] [flang][OpenMP] Add -fopenmp-version=52 to teams.f90 (PR #92180)

via flang-commits flang-commits at lists.llvm.org
Tue May 14 14:30:53 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-flang-openmp

@llvm/pr-subscribers-flang-fir-hlfir

Author: Krzysztof Parzyszek (kparzysz)

<details>
<summary>Changes</summary>

One of the functions in the test has `teams if(...)`. The `if` clause was only allowed on the `teams` directive in OpenMP 5.2.

---
Full diff: https://github.com/llvm/llvm-project/pull/92180.diff


1 Files Affected:

- (modified) flang/test/Lower/OpenMP/teams.f90 (+1-1) 


``````````diff
diff --git a/flang/test/Lower/OpenMP/teams.f90 b/flang/test/Lower/OpenMP/teams.f90
index f122a578a6e16..b1b2e7080676e 100644
--- a/flang/test/Lower/OpenMP/teams.f90
+++ b/flang/test/Lower/OpenMP/teams.f90
@@ -1,6 +1,6 @@
 ! REQUIRES: openmp_runtime
 
-! RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - | FileCheck %s
+! RUN: %flang_fc1 -emit-hlfir -fopenmp -fopenmp-version=52 %s -o - | FileCheck %s
 
 ! CHECK-LABEL: func @_QPteams_simple
 subroutine teams_simple()

``````````

</details>


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


More information about the flang-commits mailing list