Skip to content

Commit 59e405b

Browse files
authored
[flang][OpenMP] Add %flang_fc1 RUN to delayed privatization tests (#84296)
I did not know how `-mmlir` flag works and was deferring the addition of `--openm-enabled-delayed-privatization` until later because I thought some work needs to be done to do that. This commit just adds some extra `RUN` lines to delayed privatization tests to run them from `flang` as well.
1 parent d5aecf0 commit 59e405b

6 files changed

+24
-6
lines changed

flang/test/Lower/OpenMP/FIR/delayed-privatization-firstprivate.f90

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
! Test delayed privatization for the `private` clause.
22

3-
! RUN: bbc -emit-fir -hlfir=false -fopenmp --openmp-enable-delayed-privatization -o - %s 2>&1 | FileCheck %s
3+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp -mmlir \
4+
! RUN: --openmp-enable-delayed-privatization -o - %s 2>&1 | FileCheck %s
5+
! RUN: bbc -emit-fir -hlfir=false -fopenmp --openmp-enable-delayed-privatization \
6+
! RUN: -o - %s 2>&1 | FileCheck %s
47

58
subroutine delayed_privatization_firstprivate
69
implicit none

flang/test/Lower/OpenMP/FIR/delayed-privatization-private.f90

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
! Test delayed privatization for the `private` clause.
22

3-
! RUN: bbc -emit-fir -hlfir=false -fopenmp --openmp-enable-delayed-privatization -o - %s 2>&1 | FileCheck %s
3+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp -mmlir \
4+
! RUN: --openmp-enable-delayed-privatization -o - %s 2>&1 | FileCheck %s
5+
! RUN: bbc -emit-fir -hlfir=false -fopenmp --openmp-enable-delayed-privatization \
6+
! RUN: -o - %s 2>&1 | FileCheck %s
47

58
subroutine delayed_privatization_private
69
implicit none

flang/test/Lower/OpenMP/delayed-privatization-firstprivate.f90

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
! Test delayed privatization for the `firstprivate` clause.
22

3-
! RUN: bbc -emit-hlfir -fopenmp --openmp-enable-delayed-privatization -o - %s 2>&1 | FileCheck %s
3+
! RUN: %flang_fc1 -emit-hlfir -fopenmp -mmlir --openmp-enable-delayed-privatization \
4+
! RUN: -o - %s 2>&1 | FileCheck %s
5+
! RUN: bbc -emit-hlfir -fopenmp --openmp-enable-delayed-privatization -o - %s 2>&1 \
6+
! RUN: | FileCheck %s
47

58
subroutine delayed_privatization_firstprivate
69
implicit none

flang/test/Lower/OpenMP/delayed-privatization-private-firstprivate.f90

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
! Test delayed privatization for both `private` and `firstprivate` clauses.
22

3-
! RUN: bbc -emit-hlfir -fopenmp --openmp-enable-delayed-privatization -o - %s 2>&1 | FileCheck %s
3+
! RUN: %flang_fc1 -emit-hlfir -fopenmp -mmlir --openmp-enable-delayed-privatization \
4+
! RUN: -o - %s 2>&1 | FileCheck %s
5+
! RUN: bbc -emit-hlfir -fopenmp --openmp-enable-delayed-privatization -o - %s 2>&1 \
6+
! RUN: | FileCheck %s
47

58
subroutine delayed_privatization_private_firstprivate
69
implicit none

flang/test/Lower/OpenMP/delayed-privatization-private.f90

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
! Test delayed privatization for the `private` clause.
22

3-
! RUN: bbc -emit-hlfir -fopenmp --openmp-enable-delayed-privatization -o - %s 2>&1 | FileCheck %s
3+
! RUN: %flang_fc1 -emit-hlfir -fopenmp -mmlir --openmp-enable-delayed-privatization \
4+
! RUN: -o - %s 2>&1 | FileCheck %s
5+
! RUN: bbc -emit-hlfir -fopenmp --openmp-enable-delayed-privatization -o - %s 2>&1 \
6+
! RUN: | FileCheck %s
47

58
subroutine delayed_privatization_private
69
implicit none

flang/test/Lower/OpenMP/delayed-privatization-reduction.f90

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
! that the block arguments are added in the proper order (reductions first and
44
! then delayed privatization.
55

6-
! RUN: bbc -emit-hlfir -fopenmp --openmp-enable-delayed-privatization -o - %s 2>&1 | FileCheck %s
6+
! RUN: %flang_fc1 -emit-hlfir -fopenmp -mmlir --openmp-enable-delayed-privatization \
7+
! RUN: -o - %s 2>&1 | FileCheck %s
8+
! RUN: bbc -emit-hlfir -fopenmp --openmp-enable-delayed-privatization -o - %s 2>&1 \
9+
! RUN: | FileCheck %s
710

811
subroutine red_and_delayed_private
912
integer :: red

0 commit comments

Comments
 (0)