repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
svn merge -r102224:107263 svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-3_4-branch
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
mips-asm-1.c
blob
5ab4640e2d0a45ee3122291845615f10366a8328
1
/* PR target/17565. GCC used to put the asm into the delay slot
2
of the call. */
3
/* { dg-do assemble { target mips*-*-* } } */
4
/* { dg-options "-O" } */
5
int
foo
(
int
n
)
6
{
7
register
int
k
asm
(
"$16"
) =
n
;
8
if
(
k
>
0
)
9
{
10
bar
();
11
asm
(
"li %0,0x12345678"
:
"=r"
(
k
));
12
}
13
return
k
;
14
}