Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
c6b77e6f
Commit
c6b77e6f
authored
Aug 22, 2004
by
Tobias Schlüter
Committed by
Tobias Schlüter
Aug 22, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gfortran.dg/reduction.f90: Add checks with complex arguments.
From-SVN: r86378
parent
617097a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gfortran.dg/reduction.f90
+27
-0
No files found.
gcc/testsuite/ChangeLog
View file @
c6b77e6f
2004
-
08
-
22
Tobias
Schlueter
<
tobias
.
schlueter
@physik
.
uni
-
muenchen
.
de
>
*
gfortran
.
dg
/
reduction
.
f90
:
Add
checks
with
complex
arguments
.
2004
-
08
-
21
Bud
Davis
<
bdavis9659
@comcast
.
net
>
PR
16908
...
...
gcc/testsuite/gfortran.dg/reduction.f90
View file @
c6b77e6f
...
...
@@ -9,6 +9,7 @@ program reduction_mask
integer
,
parameter
::
res
(
4
*
9
)
=
(/
3
,
3
,
3
,
2
,
2
,
2
,
2
,
2
,
2
,
1
,
1
,
1
,
1
,
&
1
,
1
,
1
,
1
,
1
,
6
,
6
,
6
,
2
,
2
,
2
,
2
,
2
,
2
,
6
,
6
,
6
,
3
,
3
,
3
,
3
,
3
,
3
/)
integer
::
val
(
4
*
9
)
complex
::
cval
(
2
*
9
),
cin
(
3
)
equal
=
(/
.true.
,
.true.
,
.false.
/)
...
...
@@ -55,4 +56,30 @@ program reduction_mask
val
(
36
)
=
sum
((/
1
,
2
,
3
/),
mask
=
equal
,
dim
=
1
)
if
(
any
(
val
/
=
res
))
call
abort
! Tests for complex arguments. These were broken by the original fix.
cin
=
cmplx
((/
1
,
2
,
3
/))
cval
(
1
)
=
product
(
cin
)
cval
(
2
)
=
product
(
cin
,
1
)
cval
(
3
)
=
product
(
cin
,
dim
=
1
)
cval
(
4
)
=
product
(
cin
,
equal
)
cval
(
5
)
=
product
(
cin
,
mask
=
equal
)
cval
(
6
)
=
product
(
cin
,
1
,
equal
)
cval
(
7
)
=
product
(
cin
,
1
,
mask
=
equal
)
cval
(
8
)
=
product
(
cin
,
dim
=
1
,
mask
=
equal
)
cval
(
9
)
=
product
(
cin
,
mask
=
equal
,
dim
=
1
)
cval
(
10
)
=
sum
(
cin
)
cval
(
11
)
=
sum
(
cin
,
1
)
cval
(
12
)
=
sum
(
cin
,
dim
=
1
)
cval
(
13
)
=
sum
(
cin
,
equal
)
cval
(
14
)
=
sum
(
cin
,
mask
=
equal
)
cval
(
15
)
=
sum
(
cin
,
1
,
equal
)
cval
(
16
)
=
sum
(
cin
,
1
,
mask
=
equal
)
cval
(
17
)
=
sum
(
cin
,
dim
=
1
,
mask
=
equal
)
cval
(
18
)
=
sum
(
cin
,
mask
=
equal
,
dim
=
1
)
if
(
any
(
cval
/
=
cmplx
(
res
(
19
:
36
))))
call
abort
end
program
reduction_mask
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment