2 ! { dg-additional-options "-fdump-tree-original" }
6 ! EXEC_OMP_TARGET_TEAMS
8 !$omp target teams map(x) firstprivate(x)
10 !$omp end target teams
12 !$omp target teams map(x) firstprivate(y)
14 !$omp end target teams
16 ! EXEC_OMP_TARGET_TEAMS_DISTRIBUTE
18 !$omp target teams distribute map(x) firstprivate(x)
22 !$omp end target teams distribute
24 !$omp target teams distribute map(x) firstprivate(y)
28 !$omp end target teams distribute
30 ! EXEC_OMP_TARGET_TEAMS_LOOP
32 !$omp target teams loop map(x) firstprivate(x)
36 !$omp end target teams loop
38 !$omp target teams loop map(x) firstprivate(y)
42 !$omp end target teams loop
44 ! EXEC_OMP_TARGET_TEAMS_DISTRIBUTE_SIMD
46 !$omp target teams distribute simd map(x) firstprivate(x)
50 !$omp end target teams distribute simd
52 !$omp target teams distribute simd map(x) firstprivate(y)
56 !$omp end target teams distribute simd
58 ! EXEC_OMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_DO
60 !$omp target teams distribute parallel do map(x) firstprivate(x)
64 !$omp end target teams distribute parallel do
66 !$omp target teams distribute parallel do map(x) firstprivate(y)
70 !$omp end target teams distribute parallel do
72 ! EXEC_OMP_TARGET_PARALLEL
74 !$omp target parallel map(x) firstprivate(x)
76 !$omp end target parallel
78 !$omp target parallel map(x) firstprivate(y)
80 !$omp end target parallel
82 ! EXEC_OMP_TARGET_PARALLEL_DO
84 !$omp target parallel do map(x) firstprivate(x)
88 !$omp end target parallel do
90 !$omp target parallel do map(x) firstprivate(y)
94 !$omp end target parallel do
96 ! EXEC_OMP_TARGET_PARALLEL_LOOP
98 !$omp target parallel loop map(x) firstprivate(x)
102 !$omp end target parallel loop
104 !$omp target parallel loop map(x) firstprivate(y)
108 !$omp end target parallel loop
110 ! EXEC_OMP_TARGET_PARALLEL_DO_SIMD
112 !$omp target parallel do simd map(x) firstprivate(x)
116 !$omp end target parallel do simd
118 !$omp target parallel do simd map(x) firstprivate(y)
122 !$omp end target parallel do simd
124 ! EXEC_OMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_DO_SIMD
126 !$omp target teams distribute parallel do simd map(x) firstprivate(x)
130 !$omp end target teams distribute parallel do simd
132 !$omp target teams distribute parallel do simd map(x) firstprivate(y)
136 !$omp end target teams distribute parallel do simd
138 ! { dg-final { scan-tree-dump-times {omp target map\(tofrom:x\)} 10 "original" } }
139 ! { dg-final { scan-tree-dump-times {omp target firstprivate\(y\) map\(tofrom:x\)} 10 "original" } }
141 ! { dg-final { scan-tree-dump-times {omp teams firstprivate\(x\)} 6 "original" } }
142 ! { dg-final { scan-tree-dump-times {omp teams firstprivate\(y\)} 6 "original" } }
144 ! { dg-final { scan-tree-dump-times {omp parallel firstprivate\(x\)} 6 "original" } }
145 ! { dg-final { scan-tree-dump-times {omp parallel firstprivate\(y\)} 6 "original" } }