Skip to content

[FLANG][OpenMP][Taskloop] - Add testcase for reduction and in_reduction clause in taskloop construct #139704

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions flang/test/Lower/OpenMP/Todo/taskloop-inreduction.f90
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
! RUN: %not_todo_cmd bbc -emit-fir -fopenmp -fopenmp-version=50 -o - %s 2>&1 | FileCheck %s
! RUN: %not_todo_cmd %flang_fc1 -emit-fir -fopenmp -fopenmp-version=50 -o - %s 2>&1 | FileCheck %s

! CHECK: not yet implemented: Unhandled clause IN_REDUCTION in TASKLOOP construct
subroutine omp_taskloop_inreduction()
integer x
x = 0
!$omp taskloop in_reduction(+:x)
do i = 1, 100
x = x + 1
end do
!$omp end taskloop
end subroutine omp_taskloop_inreduction
13 changes: 13 additions & 0 deletions flang/test/Lower/OpenMP/Todo/taskloop-reduction.f90
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
! RUN: %not_todo_cmd bbc -emit-fir -fopenmp -fopenmp-version=50 -o - %s 2>&1 | FileCheck %s
! RUN: %not_todo_cmd %flang_fc1 -emit-fir -fopenmp -fopenmp-version=50 -o - %s 2>&1 | FileCheck %s

! CHECK: not yet implemented: Unhandled clause REDUCTION in TASKLOOP construct
subroutine omp_taskloop_reduction()
integer x
x = 0
!$omp taskloop reduction(+:x)
do i = 1, 100
x = x + 1
end do
!$omp end taskloop
end subroutine omp_taskloop_reduction