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
Fix all MIPS test failures caused by implicit declaration/int warnings.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
mips
/
asm-1.c
blob
2408b25000958832383f5e0548e4558afc74be7d
1
/* PR target/17565. GCC used to put the asm into the delay slot
2
of the call. */
3
/* { dg-do assemble } */
4
5
extern
void
bar
(
void
);
6
7
NOMIPS16
int
foo
(
int
n
)
8
{
9
register
int
k
asm
(
"$16"
) =
n
;
10
if
(
k
>
0
)
11
{
12
bar
();
13
asm
(
"li %0,0x12345678"
:
"=r"
(
k
));
14
}
15
return
k
;
16
}