@@ -20,11 +20,11 @@ subroutine integer1(a, id)
20
20
21
21
res = reduce(a, red_int1)
22
22
23
- res = reduce(a, red_int1, 1 , identity= id)
23
+ res = reduce(a, red_int1, identity= id)
24
24
25
- res = reduce(a, red_int1, 1 , identity= id, ordered = .false. )
25
+ res = reduce(a, red_int1, identity= id, ordered = .false. )
26
26
27
- res = reduce(a, red_int1, 1 , [.true. , .true. , .false. ])
27
+ res = reduce(a, red_int1, [.true. , .true. , .false. ])
28
28
end subroutine
29
29
30
30
! CHECK-LABEL: func.func @_QMreduce_modPinteger1(
@@ -65,7 +65,7 @@ pure function red_int2(a,b)
65
65
subroutine integer2 (a )
66
66
integer (2 ), intent (in ) :: a(:)
67
67
integer (2 ) :: res
68
- res = reduce(a, red_int2, 1 )
68
+ res = reduce(a, red_int2)
69
69
end subroutine
70
70
71
71
! CHECK: fir.call @_FortranAReduceInteger2
@@ -79,7 +79,7 @@ pure function red_int4(a,b)
79
79
subroutine integer4 (a )
80
80
integer (4 ), intent (in ) :: a(:)
81
81
integer (4 ) :: res
82
- res = reduce(a, red_int4, 1 )
82
+ res = reduce(a, red_int4)
83
83
end subroutine
84
84
85
85
! CHECK: fir.call @_FortranAReduceInteger4
@@ -93,7 +93,7 @@ pure function red_int8(a,b)
93
93
subroutine integer8 (a )
94
94
integer (8 ), intent (in ) :: a(:)
95
95
integer (8 ) :: res
96
- res = reduce(a, red_int8, 1 )
96
+ res = reduce(a, red_int8)
97
97
end subroutine
98
98
99
99
! CHECK: fir.call @_FortranAReduceInteger8
@@ -107,7 +107,7 @@ pure function red_int16(a,b)
107
107
subroutine integer16 (a )
108
108
integer (16 ), intent (in ) :: a(:)
109
109
integer (16 ) :: res
110
- res = reduce(a, red_int16, 1 )
110
+ res = reduce(a, red_int16)
111
111
end subroutine
112
112
113
113
! CHECK: fir.call @_FortranAReduceInteger16
@@ -121,7 +121,7 @@ pure function red_real2(a,b)
121
121
subroutine real2 (a )
122
122
real (2 ), intent (in ) :: a(:)
123
123
real (2 ) :: res
124
- res = reduce(a, red_real2, 1 )
124
+ res = reduce(a, red_real2)
125
125
end subroutine
126
126
127
127
! CHECK: fir.call @_FortranAReduceReal2
@@ -135,7 +135,7 @@ pure function red_real3(a,b)
135
135
subroutine real3 (a )
136
136
real (3 ), intent (in ) :: a(:)
137
137
real (3 ) :: res
138
- res = reduce(a, red_real3, 1 )
138
+ res = reduce(a, red_real3)
139
139
end subroutine
140
140
141
141
! CHECK: fir.call @_FortranAReduceReal3
@@ -149,7 +149,7 @@ pure function red_real4(a,b)
149
149
subroutine real4 (a )
150
150
real (4 ), intent (in ) :: a(:)
151
151
real (4 ) :: res
152
- res = reduce(a, red_real4, 1 )
152
+ res = reduce(a, red_real4)
153
153
end subroutine
154
154
155
155
! CHECK: fir.call @_FortranAReduceReal4
@@ -163,7 +163,7 @@ pure function red_real8(a,b)
163
163
subroutine real8 (a )
164
164
real (8 ), intent (in ) :: a(:)
165
165
real (8 ) :: res
166
- res = reduce(a, red_real8, 1 )
166
+ res = reduce(a, red_real8)
167
167
end subroutine
168
168
169
169
! CHECK: fir.call @_FortranAReduceReal8
@@ -177,7 +177,7 @@ pure function red_real10(a,b)
177
177
subroutine real10 (a )
178
178
real (10 ), intent (in ) :: a(:)
179
179
real (10 ) :: res
180
- res = reduce(a, red_real10, 1 )
180
+ res = reduce(a, red_real10)
181
181
end subroutine
182
182
183
183
! CHECK: fir.call @_FortranAReduceReal10
@@ -191,7 +191,7 @@ pure function red_real16(a,b)
191
191
subroutine real16 (a )
192
192
real (16 ), intent (in ) :: a(:)
193
193
real (16 ) :: res
194
- res = reduce(a, red_real16, 1 )
194
+ res = reduce(a, red_real16)
195
195
end subroutine
196
196
197
197
! CHECK: fir.call @_FortranAReduceReal16
@@ -205,7 +205,7 @@ pure function red_complex2(a,b)
205
205
subroutine complex2 (a )
206
206
complex (2 ), intent (in ) :: a(:)
207
207
complex (2 ) :: res
208
- res = reduce(a, red_complex2, 1 )
208
+ res = reduce(a, red_complex2)
209
209
end subroutine
210
210
211
211
! CHECK: fir.call @_FortranACppReduceComplex2
@@ -219,7 +219,7 @@ pure function red_complex3(a,b)
219
219
subroutine complex3 (a )
220
220
complex (3 ), intent (in ) :: a(:)
221
221
complex (3 ) :: res
222
- res = reduce(a, red_complex3, 1 )
222
+ res = reduce(a, red_complex3)
223
223
end subroutine
224
224
225
225
! CHECK: fir.call @_FortranACppReduceComplex3
@@ -233,7 +233,7 @@ pure function red_complex4(a,b)
233
233
subroutine complex4 (a )
234
234
complex (4 ), intent (in ) :: a(:)
235
235
complex (4 ) :: res
236
- res = reduce(a, red_complex4, 1 )
236
+ res = reduce(a, red_complex4)
237
237
end subroutine
238
238
239
239
! CHECK: fir.call @_FortranACppReduceComplex4
@@ -247,7 +247,7 @@ pure function red_complex8(a,b)
247
247
subroutine complex8 (a )
248
248
complex (8 ), intent (in ) :: a(:)
249
249
complex (8 ) :: res
250
- res = reduce(a, red_complex8, 1 )
250
+ res = reduce(a, red_complex8)
251
251
end subroutine
252
252
253
253
! CHECK: fir.call @_FortranACppReduceComplex8
@@ -261,7 +261,7 @@ pure function red_complex10(a,b)
261
261
subroutine complex10 (a )
262
262
complex (10 ), intent (in ) :: a(:)
263
263
complex (10 ) :: res
264
- ! res = reduce(a, red_complex10, 1 )
264
+ ! res = reduce(a, red_complex10)
265
265
end subroutine
266
266
267
267
pure function red_log1 (a ,b )
@@ -273,7 +273,7 @@ pure function red_log1(a,b)
273
273
subroutine log1 (a )
274
274
logical (1 ), intent (in ) :: a(:)
275
275
logical (1 ) :: res
276
- res = reduce(a, red_log1, 1 )
276
+ res = reduce(a, red_log1)
277
277
end subroutine
278
278
279
279
! CHECK: fir.call @_FortranAReduceLogical1
@@ -287,7 +287,7 @@ pure function red_log2(a,b)
287
287
subroutine log2 (a )
288
288
logical (2 ), intent (in ) :: a(:)
289
289
logical (2 ) :: res
290
- res = reduce(a, red_log2, 1 )
290
+ res = reduce(a, red_log2)
291
291
end subroutine
292
292
293
293
! CHECK: fir.call @_FortranAReduceLogical2
@@ -301,7 +301,7 @@ pure function red_log4(a,b)
301
301
subroutine log4 (a )
302
302
logical (4 ), intent (in ) :: a(:)
303
303
logical (4 ) :: res
304
- res = reduce(a, red_log4, 1 )
304
+ res = reduce(a, red_log4)
305
305
end subroutine
306
306
307
307
! CHECK: fir.call @_FortranAReduceLogical4
@@ -315,7 +315,7 @@ pure function red_log8(a,b)
315
315
subroutine log8 (a )
316
316
logical (8 ), intent (in ) :: a(:)
317
317
logical (8 ) :: res
318
- res = reduce(a, red_log8, 1 )
318
+ res = reduce(a, red_log8)
319
319
end subroutine
320
320
321
321
! CHECK: fir.call @_FortranAReduceLogical8
@@ -329,7 +329,7 @@ pure function red_char1(a,b)
329
329
subroutine char1 (a )
330
330
character (1 ), intent (in ) :: a(:)
331
331
character (1 ) :: res
332
- res = reduce(a, red_char1, 1 )
332
+ res = reduce(a, red_char1)
333
333
end subroutine
334
334
335
335
! CHECK: fir.call @_FortranAReduceChar1
@@ -343,7 +343,7 @@ pure function red_char2(a,b)
343
343
subroutine char2 (a )
344
344
character (kind= 2 ), intent (in ) :: a(:)
345
345
character (kind= 2 ) :: res
346
- res = reduce(a, red_char2, 1 )
346
+ res = reduce(a, red_char2)
347
347
end subroutine
348
348
349
349
! CHECK: fir.call @_FortranAReduceChar2
@@ -357,7 +357,7 @@ pure function red_char4(a,b)
357
357
subroutine char4 (a )
358
358
character (kind= 4 ), intent (in ) :: a(:)
359
359
character (kind= 4 ) :: res
360
- res = reduce(a, red_char4 , 1 )
360
+ res = reduce(a, red_char4 )
361
361
end subroutine
362
362
363
363
! CHECK: fir.call @_FortranAReduceChar4
@@ -371,7 +371,7 @@ pure function red_type(a,b)
371
371
subroutine testtype (a )
372
372
type (t1), intent (in ) :: a(:)
373
373
type (t1) :: res
374
- res = reduce(a, red_type, 1 )
374
+ res = reduce(a, red_type)
375
375
end subroutine
376
376
377
377
! CHECK: fir.call @_FortranAReduceDerivedType
0 commit comments