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
bf6eb87b
Commit
bf6eb87b
authored
26 years ago
by
Nick Clifton
Committed by
Nick Clifton
26 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New test from PR 17544
From-SVN: r22719
parent
b84bfa3c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
1 deletions
+40
-1
gcc/testsuite/gcc.c-torture/ChangeLog
+2
-1
gcc/testsuite/gcc.c-torture/execute/981001-1.c
+38
-0
No files found.
gcc/testsuite/gcc.c-torture/ChangeLog
View file @
bf6eb87b
Thu Oct 1 17:15:26 1998 Nick Clifton <nickc@cygnus.com>
* compile/981001-1.c (main): New test.
* compile/981001-1.c: New test.
* execute/981001-1.c: New test.
Wed Aug 26 16:10:00 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.c-torture/execute/981001-1.c
0 → 100644
View file @
bf6eb87b
#define NG 0x100L
unsigned
long
flg
=
0
;
long
sub
(
int
n
)
{
int
a
,
b
;
if
(
n
>=
2
)
{
if
(
n
%
2
==
0
)
{
a
=
sub
(
n
/
2
);
return
(
a
+
2
*
sub
(
n
/
2
-
1
))
*
a
;
}
else
{
a
=
sub
(
n
/
2
+
1
);
b
=
sub
(
n
/
2
);
return
a
*
a
+
b
*
b
;
}
}
else
return
(
long
)
n
;
}
int
main
(
void
)
{
if
(
sub
(
30
)
!=
832040L
)
flg
|=
NG
;
if
(
flg
)
abort
();
exit
(
0
);
}
This diff is collapsed.
Click to expand it.
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