1 ! RUN: %flang_fc1 -fdebug-unparse-no-sema -fopenmp %s | FileCheck %s
2 ! Check Unparsing of OpenMP IF clause
8 ! CHECK: !$OMP TARGET UPDATE
10 !$omp target update if(cond)
12 ! CHECK: !$OMP TARGET UPDATE
13 ! CHECK-SAME: IF(TARGET UPDATE: cond)
14 !$omp target update if(target update: cond)
16 ! CHECK: !$OMP TARGET UPDATE
17 ! CHECK-SAME: IF(TARGET UPDATE: cond)
18 !$omp target update if(targetupdate: cond)
20 ! CHECK: !$OMP TARGET ENTER DATA
21 ! CHECK-SAME: IF(TARGET ENTER DATA: cond)
22 !$omp target enter data map(to: i) if(target enter data: cond)
24 ! CHECK: !$OMP TARGET EXIT DATA
25 ! CHECK-SAME: IF(TARGET EXIT DATA: cond)
26 !$omp target exit data map(from: i) if(target exit data: cond)
28 ! CHECK: !$OMP TARGET DATA
29 ! CHECK-SAME: IF(TARGET DATA: cond)
30 !$omp target data map(tofrom: i) if(target data: cond)
34 ! CHECK-SAME: IF(TARGET: cond)
35 !$omp target if(target: cond)
39 ! CHECK-SAME: IF(TEAMS: cond)
40 !$omp teams if(teams: cond)
43 ! CHECK: !$OMP PARALLEL DO SIMD
44 ! CHECK-SAME: IF(PARALLEL: i<10) IF(SIMD: .FALSE.)
45 !$omp parallel do simd if(parallel: i < 10) if(simd: .false.)
48 !$omp end parallel do simd
51 ! CHECK-SAME: IF(TASK: cond)
52 !$omp task if(task: cond)
55 ! CHECK: !$OMP TASKLOOP
56 ! CHECK-SAME: IF(TASKLOOP: cond)
57 !$omp taskloop if(taskloop: cond)
61 end program if_unparse