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
5854ee30
Commit
5854ee30
authored
Feb 02, 2016
by
Alexander Monakov
Committed by
Alexander Monakov
Feb 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libgomp: fix target-31.c testcase
* testsuite/libgomp.c/target-31.c: Fix testcase. From-SVN: r233087
parent
e70b6ad7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletions
+16
-1
libgomp/ChangeLog
+4
-0
libgomp/testsuite/libgomp.c/target-31.c
+12
-1
No files found.
libgomp/ChangeLog
View file @
5854ee30
2016-02-02 Alexander Monakov <amonakov@ispras.ru>
* testsuite/libgomp.c/target-31.c: Fix testcase.
2016-02-02 Alexander Monakov <amonakov@ispras.ru>
* testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
clause.
* testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
...
...
libgomp/testsuite/libgomp.c/target-31.c
View file @
5854ee30
...
...
@@ -36,7 +36,18 @@ main ()
u3
[
i
]
=
k
+
i
;
#pragma omp parallel num_threads (1)
{
if
(
c
!=
3
||
d
!=
4
||
g
[
0
]
!=
9
||
g
[
1
]
!=
10
||
h
[
0
]
!=
11
||
h
[
1
]
!=
12
||
k
!=
14
||
m
[
0
]
!=
17
||
m
[
1
]
!=
18
)
int
v1
,
v2
,
v3
;
#pragma omp atomic read
v1
=
c
;
#pragma omp atomic read
v2
=
g
[
0
];
#pragma omp atomic read
v3
=
g
[
1
];
if
((
v1
<
3
||
v1
>
6
)
||
d
!=
4
||
(
v2
<
9
||
v2
>
15
||
(
v2
&
1
)
==
0
)
||
(
v3
<
10
||
v3
>
19
||
((
v3
-
10
)
%
3
)
!=
0
)
||
h
[
0
]
!=
11
||
h
[
1
]
!=
12
||
k
!=
14
||
m
[
0
]
!=
17
||
m
[
1
]
!=
18
)
#pragma omp atomic write
err
=
1
;
b
=
omp_get_team_num
();
...
...
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