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
0b1f0725
Commit
0b1f0725
authored
Dec 16, 1999
by
Michael Meissner
Committed by
Michael Meissner
Dec 16, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new tests for long long spanning reg/stack
From-SVN: r30967
parent
58010b57
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
204 additions
and
0 deletions
+204
-0
gcc/testsuite/gcc.c-torture/ChangeLog
+6
-0
gcc/testsuite/gcc.c-torture/execute/991216-1.c
+116
-0
gcc/testsuite/gcc.c-torture/execute/991216-2.c
+40
-0
gcc/testsuite/gcc.c-torture/execute/991216-3.c
+42
-0
No files found.
gcc/testsuite/gcc.c-torture/ChangeLog
View file @
0b1f0725
1999-12-16 Michael Meissner <meissner@cygnus.com>
* execute/991216-1.c: New test.
* execute/991216-2.c: New test.
* execute/991216-3.c: New test.
1999-12-14 Bernd Schmidt <bernds@cygnus.co.uk>
* compile/991214-1.c: New test.
...
...
gcc/testsuite/gcc.c-torture/execute/991216-1.c
0 → 100644
View file @
0b1f0725
#define VALUE 0x123456789abcdefLL
#define AFTER 0x55
void
test1
(
int
a
,
long
long
value
,
int
after
)
{
if
(
a
!=
1
||
value
!=
VALUE
||
after
!=
AFTER
)
abort
();
}
void
test2
(
int
a
,
int
b
,
long
long
value
,
int
after
)
{
if
(
a
!=
1
||
b
!=
2
||
value
!=
VALUE
||
after
!=
AFTER
)
abort
();
}
void
test3
(
int
a
,
int
b
,
int
c
,
long
long
value
,
int
after
)
{
if
(
a
!=
1
||
b
!=
2
||
c
!=
3
||
value
!=
VALUE
||
after
!=
AFTER
)
abort
();
}
void
test4
(
int
a
,
int
b
,
int
c
,
int
d
,
long
long
value
,
int
after
)
{
if
(
a
!=
1
||
b
!=
2
||
c
!=
3
||
d
!=
4
||
value
!=
VALUE
||
after
!=
AFTER
)
abort
();
}
void
test5
(
int
a
,
int
b
,
int
c
,
int
d
,
int
e
,
long
long
value
,
int
after
)
{
if
(
a
!=
1
||
b
!=
2
||
c
!=
3
||
d
!=
4
||
e
!=
5
||
value
!=
VALUE
||
after
!=
AFTER
)
abort
();
}
void
test6
(
int
a
,
int
b
,
int
c
,
int
d
,
int
e
,
int
f
,
long
long
value
,
int
after
)
{
if
(
a
!=
1
||
b
!=
2
||
c
!=
3
||
d
!=
4
||
e
!=
5
||
f
!=
6
||
value
!=
VALUE
||
after
!=
AFTER
)
abort
();
}
void
test7
(
int
a
,
int
b
,
int
c
,
int
d
,
int
e
,
int
f
,
int
g
,
long
long
value
,
int
after
)
{
if
(
a
!=
1
||
b
!=
2
||
c
!=
3
||
d
!=
4
||
e
!=
5
||
f
!=
6
||
g
!=
7
||
value
!=
VALUE
||
after
!=
AFTER
)
abort
();
}
void
test8
(
int
a
,
int
b
,
int
c
,
int
d
,
int
e
,
int
f
,
int
g
,
int
h
,
long
long
value
,
int
after
)
{
if
(
a
!=
1
||
b
!=
2
||
c
!=
3
||
d
!=
4
||
e
!=
5
||
f
!=
6
||
g
!=
7
||
h
!=
8
||
value
!=
VALUE
||
after
!=
AFTER
)
abort
();
}
int
main
()
{
test1
(
1
,
VALUE
,
AFTER
);
test2
(
1
,
2
,
VALUE
,
AFTER
);
test3
(
1
,
2
,
3
,
VALUE
,
AFTER
);
test4
(
1
,
2
,
3
,
4
,
VALUE
,
AFTER
);
test5
(
1
,
2
,
3
,
4
,
5
,
VALUE
,
AFTER
);
test6
(
1
,
2
,
3
,
4
,
5
,
6
,
VALUE
,
AFTER
);
test7
(
1
,
2
,
3
,
4
,
5
,
6
,
7
,
VALUE
,
AFTER
);
test8
(
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
VALUE
,
AFTER
);
exit
(
0
);
}
gcc/testsuite/gcc.c-torture/execute/991216-2.c
0 → 100644
View file @
0b1f0725
#include <stdarg.h>
#define VALUE 0x123456789abcdefLL
#define AFTER 0x55
void
test
(
int
n
,
...)
{
va_list
ap
;
int
i
;
va_start
(
ap
,
n
);
for
(
i
=
2
;
i
<=
n
;
i
++
)
{
if
(
va_arg
(
ap
,
int
)
!=
i
)
abort
();
}
if
(
va_arg
(
ap
,
long
long
)
!=
VALUE
)
abort
();
if
(
va_arg
(
ap
,
int
)
!=
AFTER
)
abort
();
va_end
(
ap
);
}
int
main
()
{
test
(
1
,
VALUE
,
AFTER
);
test
(
2
,
2
,
VALUE
,
AFTER
);
test
(
3
,
2
,
3
,
VALUE
,
AFTER
);
test
(
4
,
2
,
3
,
4
,
VALUE
,
AFTER
);
test
(
5
,
2
,
3
,
4
,
5
,
VALUE
,
AFTER
);
test
(
6
,
2
,
3
,
4
,
5
,
6
,
VALUE
,
AFTER
);
test
(
7
,
2
,
3
,
4
,
5
,
6
,
7
,
VALUE
,
AFTER
);
test
(
8
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
VALUE
,
AFTER
);
exit
(
0
);
}
gcc/testsuite/gcc.c-torture/execute/991216-3.c
0 → 100644
View file @
0b1f0725
#include <varargs.h>
#define VALUE 0x123456789abcdefLL
#define AFTER 0x55
void
test
(
va_alist
)
va_dcl
{
va_list
ap
;
int
i
,
n
;
va_start
(
ap
);
n
=
va_arg
(
ap
,
int
);
for
(
i
=
2
;
i
<=
n
;
i
++
)
{
if
(
va_arg
(
ap
,
int
)
!=
i
)
abort
();
}
if
(
va_arg
(
ap
,
long
long
)
!=
VALUE
)
abort
();
if
(
va_arg
(
ap
,
int
)
!=
AFTER
)
abort
();
va_end
(
ap
);
}
int
main
()
{
test
(
1
,
VALUE
,
AFTER
);
test
(
2
,
2
,
VALUE
,
AFTER
);
test
(
3
,
2
,
3
,
VALUE
,
AFTER
);
test
(
4
,
2
,
3
,
4
,
VALUE
,
AFTER
);
test
(
5
,
2
,
3
,
4
,
5
,
VALUE
,
AFTER
);
test
(
6
,
2
,
3
,
4
,
5
,
6
,
VALUE
,
AFTER
);
test
(
7
,
2
,
3
,
4
,
5
,
6
,
7
,
VALUE
,
AFTER
);
test
(
8
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
VALUE
,
AFTER
);
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