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
05ca7cfd
Commit
05ca7cfd
authored
Apr 04, 2000
by
Hans-Peter Nilsson
Committed by
Hans-Peter Nilsson
Apr 04, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* execute/20000403-1.c: New test.
From-SVN: r32902
parent
a5774a7d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
gcc/testsuite/gcc.c-torture/ChangeLog
+4
-0
gcc/testsuite/gcc.c-torture/execute/20000403-1.c
+29
-0
No files found.
gcc/testsuite/gcc.c-torture/ChangeLog
View file @
05ca7cfd
Mon Apr 3 16:53:52 2000 Hans-Peter Nilsson <hp@axis.com>
* execute/20000403-1.c: New test.
2000-04-03 Geoff Keating <geoffk@cygnus.com>
* execute/20000402-1.c: New test.
...
...
gcc/testsuite/gcc.c-torture/execute/20000403-1.c
0 → 100644
View file @
05ca7cfd
extern
unsigned
long
aa
[],
bb
[];
int
seqgt
(
unsigned
long
a
,
unsigned
short
win
,
unsigned
long
b
);
int
seqgt2
(
unsigned
long
a
,
unsigned
short
win
,
unsigned
long
b
);
main
()
{
if
(
!
seqgt
(
*
aa
,
0x1000
,
*
bb
)
||
!
seqgt2
(
*
aa
,
0x1000
,
*
bb
))
abort
();
exit
(
0
);
}
int
seqgt
(
unsigned
long
a
,
unsigned
short
win
,
unsigned
long
b
)
{
return
(
long
)
((
a
+
win
)
-
b
)
>
0
;
}
int
seqgt2
(
unsigned
long
a
,
unsigned
short
win
,
unsigned
long
b
)
{
long
l
=
((
a
+
win
)
-
b
);
return
l
>
0
;
}
unsigned
long
aa
[]
=
{
(
1UL
<<
(
sizeof
(
long
)
*
8
-
1
))
-
0xfff
};
unsigned
long
bb
[]
=
{
(
1UL
<<
(
sizeof
(
long
)
*
8
-
1
))
-
0xfff
};
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