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
blob5ab4640e2d0a45ee3122291845615f10366a8328
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)
7 register int k asm ("$16") = n;
8 if (k > 0)
10 bar ();
11 asm ("li %0,0x12345678" : "=r" (k));
13 return k;