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
cf8e718a
Commit
cf8e718a
authored
Oct 26, 2000
by
Richard Henderson
Committed by
Richard Henderson
Oct 26, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New test.
From-SVN: r37078
parent
140c3b7e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
0 deletions
+48
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.c-torture/execute/20001026-1.c
+44
-0
No files found.
gcc/testsuite/ChangeLog
View file @
cf8e718a
2000-10-26 Richard Henderson <rth@redhat.com>
* gcc.c-torture/execute/20001026-1.c: New.
2000-10-26 Mark Mitchell <mark@codesourcery.com>
2000-10-26 Mark Mitchell <mark@codesourcery.com>
* g++.old-deja/g++.brendan/label2.C: Tweak to work with V3.
* g++.old-deja/g++.brendan/label2.C: Tweak to work with V3.
...
...
gcc/testsuite/gcc.c-torture/execute/20001026-1.c
0 → 100644
View file @
cf8e718a
extern
void
abort
(
void
);
typedef
struct
{
long
r
[(
19
+
sizeof
(
long
))
/
(
sizeof
(
long
))];
}
realvaluetype
;
typedef
void
*
tree
;
static
realvaluetype
real_value_from_int_cst
(
tree
x
,
tree
y
)
{
realvaluetype
r
;
int
i
;
for
(
i
=
0
;
i
<
sizeof
(
r
.
r
)
/
sizeof
(
long
);
++
i
)
r
.
r
[
i
]
=
-
1
;
return
r
;
}
struct
brfic_args
{
tree
type
;
tree
i
;
realvaluetype
d
;
};
static
void
build_real_from_int_cst_1
(
data
)
void
*
data
;
{
struct
brfic_args
*
args
=
(
struct
brfic_args
*
)
data
;
args
->
d
=
real_value_from_int_cst
(
args
->
type
,
args
->
i
);
}
int
main
()
{
struct
brfic_args
args
;
__builtin_memset
(
&
args
,
0
,
sizeof
(
args
));
build_real_from_int_cst_1
(
&
args
);
if
(
args
.
d
.
r
[
0
]
==
0
)
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