OSDN Git Service

Backported from mainline
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / compile / mipscop-3.c
index dd894c4..cb4bd4d 100644 (file)
@@ -1,11 +1,10 @@
 /* { dg-do compile { target mips*-*-* } } */
 
-#ifndef __mips16
 register unsigned int c3r1 asm ("$c3r1"), c3r2 asm ("$c3r2");
 
 extern unsigned int b, c;
 
-void
+void __attribute__ ((nomips16))
 foo ()
 {
   unsigned int a, d;
@@ -17,4 +16,3 @@ foo ()
   d = c3r1;
   printf ("%d\n", d);
 }
-#endif