OSDN Git Service

* expmed.c (store_bit_field_1): Properly truncate the paradoxical
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / mips / asm-1.c
1 /* PR target/17565.  GCC used to put the asm into the delay slot
2    of the call.  */
3 /* { dg-do assemble } */
4 /* { dg-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 }