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
bc622fae
Commit
bc622fae
authored
Dec 02, 1999
by
Bernd Schmidt
Committed by
Bernd Schmidt
Dec 02, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Four new tests
From-SVN: r30759
parent
8571e492
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
80 additions
and
0 deletions
+80
-0
gcc/testsuite/gcc.c-torture/ChangeLog
+7
-0
gcc/testsuite/gcc.c-torture/compile/991202-1.c
+18
-0
gcc/testsuite/gcc.c-torture/execute/991202-1.c
+16
-0
gcc/testsuite/gcc.c-torture/execute/991202-2.c
+17
-0
gcc/testsuite/gcc.c-torture/execute/991202-3.c
+22
-0
No files found.
gcc/testsuite/gcc.c-torture/ChangeLog
View file @
bc622fae
1999-12-02 Bernd Schmidt <bernds@cygnus.co.uk>
* compile/991202-1.c: New test.
* execute/991202-1.c: New test.
* execute/991202-2.c: New test.
* execute/991202-3.c: New test.
1999-11-27 Bernd Schmidt <bernds@cygnus.co.uk>
1999-11-27 Bernd Schmidt <bernds@cygnus.co.uk>
* compile/991127-1.c: New test.
* compile/991127-1.c: New test.
...
...
gcc/testsuite/gcc.c-torture/compile/991202-1.c
0 → 100644
View file @
bc622fae
extern
float
A
[],
B
[];
extern
float
MAXNUMF
;
float
chbevlf
(
float
,
float
*
,
int
);
float
expf
(
float
),
i1f
(
float
),
logf
(
float
),
sqrtf
(
float
);
float
k1f
(
float
xx
)
{
float
x
,
y
;
x
=
xx
;
if
(
x
<=
2
.
0
)
{
y
=
x
*
x
-
2
.
0
;
y
=
logf
(
0
.
5
f
*
x
)
*
i1f
(
x
)
+
chbevlf
(
y
,
A
,
7
)
/
x
;
return
(
y
);
}
return
(
expf
(
-
x
)
*
chbevlf
(
(
float
)(
8
.
0
/
x
-
2
.
0
),
B
,
10
)
/
sqrtf
(
x
)
);
}
gcc/testsuite/gcc.c-torture/execute/991202-1.c
0 → 100644
View file @
bc622fae
int
x
,
y
;
int
main
()
{
x
=
2
;
y
=
x
;
do
{
x
=
y
;
y
=
2
*
y
;
}
while
(
!
((
y
-
x
)
>=
20
));
exit
(
0
);
}
gcc/testsuite/gcc.c-torture/execute/991202-2.c
0 → 100644
View file @
bc622fae
int
f1
()
{
unsigned
long
x
,
y
=
1
;
x
=
((
y
*
8192
)
-
216
)
%
16
;
return
x
;
}
int
main
()
{
if
(
f1
()
!=
8
)
abort
();
exit
(
0
);
}
gcc/testsuite/gcc.c-torture/execute/991202-3.c
0 → 100644
View file @
bc622fae
unsigned
int
f
(
unsigned
int
a
)
{
return
a
*
65536
/
8
;
}
unsigned
int
g
(
unsigned
int
a
)
{
return
a
*
65536
;
}
unsigned
int
h
(
unsigned
int
a
)
{
return
a
/
8
;
}
int
main
()
{
if
(
f
(
65536
)
!=
h
(
g
(
65536
)))
abort
();
exit
(
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