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
ee41cff4
Commit
ee41cff4
authored
Jul 03, 2003
by
Eric Botcazou
Committed by
Eric Botcazou
Jul 03, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcc.dg/i386-call-1.c: New test.
From-SVN: r68892
parent
fa5b060f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
0 deletions
+43
-0
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.dg/i386-call-1.c
+39
-0
No files found.
gcc/testsuite/ChangeLog
View file @
ee41cff4
2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
* gcc.dg/i386-call-1.c: New test.
2003-07-03 Nathan Sidwell <nathan@codesourcery.com>
PR c++/9162
...
...
gcc/testsuite/gcc.dg/i386-call-1.c
0 → 100644
View file @
ee41cff4
/* PR optimization/11304 */
/* Originator: <manuel.serrano@sophia.inria.fr> */
/* { dg-do run { target i?86-*-* } } */
/* { dg-options "-O -fomit-frame-pointer" } */
/* Verify that %eax is always restored after a call. */
extern
void
abort
(
void
);
volatile
int
r
;
void
set_eax
(
int
val
)
{
__asm__
__volatile__
(
"mov %0, %%eax"
:
:
"m"
(
val
));
}
void
foo
(
int
val
)
{
r
=
val
;
}
int
bar
(
int
x
)
{
if
(
x
)
{
set_eax
(
0
);
return
x
;
}
foo
(
x
);
}
int
main
(
void
)
{
if
(
bar
(
1
)
!=
1
)
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