Debian Codegraph @

gcc/testsuite/gfortran.dg/gomp/unroll-6.f90

raw
1 subroutine test1
2 implicit none
3 integer :: i
4
5 !$omp do
6 !$omp unroll ! { dg-error "Generated loop of UNROLL construct at \\\(1\\\) without PARTIAL clause does not have canonical form" }
7 do i = 1,100
8 call dummy(i)
9 end do
10 end subroutine test1
11
12 subroutine test2
13 implicit none
14 integer :: i
15
16 !$omp do
17 !$omp unroll ! { dg-error "Generated loop of UNROLL construct at \\\(1\\\) without PARTIAL clause does not have canonical form" }
18 do i = 1,100
19 call dummy(i)
20 end do
21 !$omp end unroll
22 end subroutine test2
23
24 subroutine test3
25 implicit none
26 integer :: i
27
28 !$omp do
29 !$omp unroll ! { dg-error "Generated loop of UNROLL construct at \\\(1\\\) without PARTIAL clause does not have canonical form" }
30 do i = 1,100
31 call dummy(i)
32 end do
33 !$omp end do
34 end subroutine test3
35
36 subroutine test4
37 implicit none
38 integer :: i
39
40 !$omp do
41 !$omp unroll ! { dg-error "Generated loop of UNROLL construct at \\\(1\\\) without PARTIAL clause does not have canonical form" }
42 do i = 1,100
43 call dummy(i)
44 end do
45 !$omp end unroll
46 !$omp end do
47 end subroutine test4
48
49 subroutine test5
50 implicit none
51 integer :: i
52
53 !$omp unroll
54 !$omp unroll ! { dg-error "Generated loop of UNROLL construct at \\\(1\\\) without PARTIAL clause does not have canonical form" }
55 do i = 1,100
56 call dummy(i)
57 end do
58 end subroutine test5
59
60 subroutine test6
61 implicit none
62 integer :: i
63
64 !$omp unroll
65 !$omp unroll ! { dg-error "Generated loop of UNROLL construct at \\\(1\\\) without PARTIAL clause does not have canonical form" }
66 do i = 1,100
67 call dummy(i)
68 end do
69 !$omp end unroll
70 end subroutine test6
71
72 subroutine test7
73 implicit none
74 integer :: i
75
76 !$omp unroll
77 !$omp unroll ! { dg-error "Generated loop of UNROLL construct at \\\(1\\\) without PARTIAL clause does not have canonical form" }
78 do i = 1,100
79 call dummy(i)
80 end do
81 !$omp end unroll
82 end subroutine test7
83
84 subroutine test8
85 implicit none
86 integer :: i
87
88 !$omp unroll
89 !$omp unroll ! { dg-error "Generated loop of UNROLL construct at \\\(1\\\) without PARTIAL clause does not have canonical form" }
90 do i = 1,100
91 call dummy(i)
92 end do
93 !$omp end unroll
94 !$omp end unroll
95 end subroutine test8
96
97 subroutine test9
98 implicit none
99 integer :: i
100
101 !$omp do
102 !$omp unroll full ! { dg-error "Generated loop of UNROLL construct at \\\(1\\\) without PARTIAL clause does not have canonical form" }
103 do i = 1,100
104 call dummy(i)
105 end do
106 end subroutine test9
107
108 subroutine test10
109 implicit none
110 integer :: i
111
112 !$omp unroll full
113 !$omp unroll full ! { dg-error "Generated loop of UNROLL construct at \\\(1\\\) without PARTIAL clause does not have canonical form" }
114 do i = 1,100
115 call dummy(i)
116 end do
117 end subroutine test10
118
119 subroutine test11
120 implicit none
121 integer :: i,j
122
123 !$omp do
124 !$omp unroll ! { dg-error "Generated loop of UNROLL construct at \\\(1\\\) without PARTIAL clause does not have canonical form" }
125 do i = 1,100
126 call dummy(i)
127 do j = 1,100
128 call dummy2(i,j)
129 end do
130 end do
131 end subroutine test11
132
133 subroutine test12
134 implicit none
135 integer :: i,j
136
137 !$omp do
138 !$omp unroll ! { dg-error "Generated loop of UNROLL construct at \\\(1\\\) without PARTIAL clause does not have canonical form" }
139 do i = 1,100
140 !$omp unroll
141 !$omp unroll ! { dg-error "Generated loop of UNROLL construct at \\\(1\\\) without PARTIAL clause does not have canonical form" }
142 call dummy(i) ! { dg-error "Unexpected CALL statement at \\\(1\\\)" }
143 !$omp unroll ! { dg-error "Generated loop of UNROLL construct at \\\(1\\\) without PARTIAL clause does not have canonical form" }
144 do j = 1,100
145 call dummy2(i,j)
146 end do
147 end do
148 end subroutine test12
149
150 subroutine test13
151 implicit none
152 integer :: i,j
153
154 !$omp do
155 !$omp unroll ! { dg-error "Generated loop of UNROLL construct at \\\(1\\\) without PARTIAL clause does not have canonical form" }
156 do i = 1,100
157 !$omp unroll
158 !$omp unroll ! { dg-error "Generated loop of UNROLL construct at \\\(1\\\) without PARTIAL clause does not have canonical form" }
159 !$omp unroll ! { dg-error "Generated loop of UNROLL construct at \\\(1\\\) without PARTIAL clause does not have canonical form" }
160 do j = 1,100
161 call dummy2(i,j)
162 end do
163 call dummy(i)
164 end do
165 end subroutine test13
166
167 subroutine test14
168 implicit none
169 integer :: i
170
171 !$omp unroll
172 !$omp unroll ! { dg-error "Generated loop of UNROLL construct at \\\(1\\\) without PARTIAL clause does not have canonical form" }
173 do i = 1,100
174 call dummy(i)
175 end do
176 !$omp end unroll
177 !$omp end unroll
178 !$omp end unroll ! { dg-error "Unexpected !\\\$OMP END UNROLL statement at \\\(1\\\)" }
179 end subroutine test14
180
181 subroutine test15
182 implicit none
183 integer :: i
184
185 !$omp do
186 !$omp unroll ! { dg-error "Generated loop of UNROLL construct at \\\(1\\\) without PARTIAL clause does not have canonical form" }
187 !$omp unroll ! { dg-error "Generated loop of UNROLL construct at \\\(1\\\) without PARTIAL clause does not have canonical form" }
188 do i = 1,100
189 call dummy(i)
190 end do
191 !$omp end unroll
192 !$omp end unroll
193 !$omp end unroll ! { dg-error "Unexpected !\\\$OMP END UNROLL statement at \\\(1\\\)" }
194 end subroutine test15
195
196 subroutine test18
197 implicit none
198 integer :: i
199
200 !$omp do
201 !$omp unroll partial(0) ! { dg-error "PARTIAL clause argument not constant positive integer at \\\(1\\\)" }
202 do i = 1,100
203 call dummy(i)
204 end do
205 !$omp end unroll
206 end subroutine test18
207
208 subroutine test19
209 implicit none
210 integer :: i
211
212 !$omp do
213 !$omp unroll partial(-10) ! { dg-error "PARTIAL clause argument not constant positive integer at \\\(1\\\)" }
214 do i = 1,100
215 call dummy(i)
216 end do
217 !$omp end unroll
218 end subroutine test19
219
220 subroutine test21
221 implicit none
222 integer :: i
223
224 !$omp unroll partial
225 do concurrent (i = 1:100) ! { dg-error "!\\\$OMP UNROLL cannot be a DO CONCURRENT loop at \\\(1\\\)" }
226 call dummy(i) ! { dg-error "Subroutine call to 'dummy' in DO CONCURRENT block at \\\(1\\\) is not PURE" }
227 end do
228 !$omp end unroll
229 end subroutine test21
230
231 subroutine test22
232 implicit none
233 integer :: i
234
235 !$omp do
236 !$omp unroll partial
237 do concurrent (i = 1:100) ! { dg-error "!\\\$OMP UNROLL cannot be a DO CONCURRENT loop at \\\(1\\\)" }
238 call dummy(i) ! { dg-error "Subroutine call to 'dummy' in DO CONCURRENT block at \\\(1\\\) is not PURE" }
239 end do
240 !$omp end unroll
241 end subroutine test22