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
ffde6675
Commit
ffde6675
authored
Feb 27, 2002
by
Hans-Peter Nilsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.c-torture/execute/20020227-1.c: New test.
From-SVN: r50117
parent
f086058e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
gcc/testsuite/gcc.c-torture/execute/20020227-1.c
+30
-0
No files found.
gcc/testsuite/gcc.c-torture/execute/20020227-1.c
0 → 100644
View file @
ffde6675
/* This testcase failed on mmix-knuth-mmixware. Problem was with storing
to an unaligned mem:SC, gcc tried doing it by parts from a (concat:SC
(reg:SF 293) (reg:SF 294)). */
typedef
__complex__
float
cf
;
struct
x
{
char
c
;
cf
f
;
}
__attribute__
((
__packed__
));
extern
void
f2
(
struct
x
*
);
extern
void
f1
(
void
);
int
main
(
void
)
{
f1
();
exit
(
0
);
}
void
f1
(
void
)
{
struct
x
s
;
s
.
f
=
1
;
s
.
c
=
42
;
f2
(
&
s
);
}
void
f2
(
struct
x
*
y
)
{
if
(
y
->
f
!=
1
||
y
->
c
!=
42
)
abort
();
}
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