Merged with mainline at revision 128810.
[official-gcc.git] / gcc / testsuite / gcc.target / mips / asm-1.c
blobab5d8f8c480402e9b3f0cc2749b3b262d2179a8b
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" } */
6 NOMIPS16 int foo (int n)
8 register int k asm ("$16") = n;
9 if (k > 0)
11 bar ();
12 asm ("li %0,0x12345678" : "=r" (k));
14 return k;