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
e6799923
Commit
e6799923
authored
Feb 26, 2018
by
Eric Botcazou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-add test.
From-SVN: r257998
parent
70a1af61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
gcc/testsuite/gcc.c-torture/execute/20180226-1.c
+31
-0
No files found.
gcc/testsuite/gcc.c-torture/execute/20180226-1.c
0 → 100644
View file @
e6799923
/* PR rtl-optimization/83496 */
/* Reported by Hauke Mehrtens <gcc@hauke-m.de> */
extern
void
abort
(
void
);
typedef
unsigned
long
mp_digit
;
typedef
struct
{
int
used
,
alloc
,
sign
;
mp_digit
*
dp
;
}
mp_int
;
int
mytest
(
mp_int
*
a
,
mp_digit
b
)
__attribute__
((
noclone
,
noinline
));
int
mytest
(
mp_int
*
a
,
mp_digit
b
)
{
if
(
a
->
sign
==
1
)
return
-
1
;
if
(
a
->
used
>
1
)
return
1
;
if
(
a
->
dp
[
0
]
>
b
)
return
1
;
if
(
a
->
dp
[
0
]
<
b
)
return
-
1
;
return
0
;
}
int
main
(
void
)
{
mp_int
i
=
{
2
,
0
,
-
1
};
if
(
mytest
(
&
i
,
0
)
!=
1
)
abort
();
return
0
;
}
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