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
Merged with mainline at revision 128810.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
mips
/
asm-1.c
blob
ab5d8f8c480402e9b3f0cc2749b3b262d2179a8b
1
/* PR target/17565. GCC used to put the asm into the delay slot
2
of the call. */
3
/* { dg-do assemble } */
4
/* { dg-mips-options "-O" } */
5
6
NOMIPS16
int
foo
(
int
n
)
7
{
8
register
int
k
asm
(
"$16"
) =
n
;
9
if
(
k
>
0
)
10
{
11
bar
();
12
asm
(
"li %0,0x12345678"
:
"=r"
(
k
));
13
}
14
return
k
;
15
}