1 ! This test checks lowering of worksharing-loop construct with ordered clause.
3 ! RUN: bbc -fopenmp -emit-hlfir %s -o - | FileCheck %s
5 ! This checks lowering ordered clause specified without parameter
6 subroutine wsloop_ordered_no_para()
9 ! CHECK: omp.wsloop ordered(0) {
10 ! CHECK-NEXT: omp.loop_nest (%{{.*}}) : i32 = (%{{.*}}) to (%{{.*}}) inclusive step (%{{.*}}) {
25 ! This checks lowering ordered clause specified with a parameter
26 subroutine wsloop_ordered_with_para()
29 ! CHECK: func @_QPwsloop_ordered_with_para() {
30 ! CHECK: omp.wsloop ordered(1) {
31 ! CHECK-NEXT: omp.loop_nest (%{{.*}}) : i32 = (%{{.*}}) to (%{{.*}}) inclusive step (%{{.*}}) {
38 !!$omp ordered depend(sink: i-1)
40 !!$omp ordered depend(source)