1 ! RUN: %flang_fc1 -fdebug-unparse -fopenmp %s | FileCheck --ignore-case %s
2 ! RUN: %flang_fc1 -fdebug-dump-parse-tree -fopenmp %s | FileCheck --check-prefix="PARSE-TREE" %s
4 subroutine parallel_work
7 !CHECK: !$OMP TASKLOOP GRAINSIZE(STRICT: 500_4)
8 !PARSE-TREE: OmpBeginLoopDirective
9 !PARSE-TREE-NEXT: OmpLoopDirective -> llvm::omp::Directive = taskloop
10 !PARSE-TREE-NEXT: OmpClauseList -> OmpClause -> Grainsize -> OmpGrainsizeClause
11 !PARSE-TREE-NEXT: Modifier -> OmpPrescriptiveness -> Value = Strict
12 !PARSE-TREE-NEXT: Scalar -> Integer -> Expr = '500_4'
13 !$omp taskloop grainsize(strict: 500)
19 !CHECK: !$OMP TASKLOOP GRAINSIZE(500_4)
20 !PARSE-TREE: OmpBeginLoopDirective
21 !PARSE-TREE-NEXT: OmpLoopDirective -> llvm::omp::Directive = taskloop
22 !PARSE-TREE-NEXT: OmpClauseList -> OmpClause -> Grainsize -> OmpGrainsizeClause
23 !PARSE-TREE-NEXT: Scalar -> Integer -> Expr = '500_4'
24 !$omp taskloop grainsize(500)
30 !CHECK: !$OMP TASKLOOP NUM_TASKS(STRICT: 500_4)
31 !PARSE-TREE: OmpBeginLoopDirective
32 !PARSE-TREE-NEXT: OmpLoopDirective -> llvm::omp::Directive = taskloop
33 !PARSE-TREE-NEXT: OmpClauseList -> OmpClause -> NumTasks -> OmpNumTasksClause
34 !PARSE-TREE-NEXT: Modifier -> OmpPrescriptiveness -> Value = Strict
35 !PARSE-TREE-NEXT: Scalar -> Integer -> Expr = '500_4'
36 !$omp taskloop num_tasks(strict: 500)
41 end subroutine parallel_work