[llvm-branch-commits] [flang] [flang][OpenMP] lower simple array reductions (PR #84958)
Kiran Chandramohan via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Mar 18 04:13:17 PDT 2024
================
@@ -0,0 +1,74 @@
+! RUN: bbc -emit-hlfir -fopenmp -o - %s 2>&1 | FileCheck %s
+! RUN: %flang_fc1 -emit-hlfir -fopenmp -o - %s 2>&1 | FileCheck %s
+
+program reduce
+integer, dimension(3) :: i = 0
+
+!$omp parallel reduction(+:i)
+i(1) = 1
+i(2) = 2
+i(3) = 3
----------------
kiranchandramohan wrote:
Yes, it would be good to have the test match the default way that it will be used.
https://github.com/llvm/llvm-project/pull/84958
More information about the llvm-branch-commits
mailing list