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