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
0b223645
Commit
0b223645
authored
Jan 03, 2002
by
Richard Henderson
Committed by
Richard Henderson
Jan 03, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.dg/20020103-1.c: New.
From-SVN: r48525
parent
187462ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/20020103-1.c
+35
-0
No files found.
gcc/testsuite/ChangeLog
View file @
0b223645
2002-01-03 Richard Henderson <rth@redhat.com>
* gcc.dg/20020103-1.c: New.
2002-01-03 Kazu Hirata <kazu@hxi.com>
* gcc.c-torture/execute/20020103-1.c: New test.
...
...
gcc/testsuite/gcc.dg/20020103-1.c
0 → 100644
View file @
0b223645
/* Verify that constant equivalences get reloaded properly, either by being
spilled to the stack, or regenerated, but not dropped to memory. */
/* { dg-do compile { target { i?86-*-* powerpc-*-* alpha*-*-* } } */
/* { dg-options "-O2 -fpic -fno-omit-frame-pointer" } */
/* { dg-final { scan-assembler-not "LC" } } */
/* Clobber all call-saved registers that can hold a pointer value. */
#if defined(__i386__)
#define clobber \
asm volatile("#asm" : : : "si", "di")
#elif defined(__powerpc__)
#define clobber \
asm volatile("#asm" : : : "14", "15", "16", "17", "18", "19", "20", \
"21", "22", "23", "24", "25", "26", "27", "28", "29")
#elif defined(__alpha__)
#define clobber \
asm volatile("#asm" : : : "$9", "$10", "$11", "$12", "$13", "$14", \
"$f2", "$f3", "$f4", "$f5", "$f6", "$f7", "$f8", "$f9")
#else
#error no clobber macro defined
#endif
extern
void
f1
(
int
,
int
,
int
);
extern
void
f2
(
int
*
,
int
*
,
int
*
);
extern
int
ext
;
static
int
loc_small
;
static
int
loc_big
[
100
];
void
bar
(
void
)
{
f1
(
ext
,
loc_small
,
loc_big
[
0
]);
clobber
;
f2
(
&
ext
,
&
loc_small
,
&
loc_big
[
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