Debian Codegraph @

gcc/testsuite/gfortran.dg/gomp/unroll-simd-3.f90

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