re PR target/51931 (No support for MIPS16 long branches)
authorRichard Sandiford <rdsandiford@googlemail.com>
Sun, 22 Jan 2012 10:33:07 +0000 (10:33 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sun, 22 Jan 2012 10:33:07 +0000 (10:33 +0000)
gcc/testsuite/
PR target/51931
* gcc.c-torture/compile/20001226-1.c: Add nomips16 attribute.
* g++.dg/opt/longbranch1.C: Likewise.

From-SVN: r183389

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/longbranch1.C
gcc/testsuite/gcc.c-torture/compile/20001226-1.c

index 86986afc7d0398d9786b3b971bcf57c68b268243..f0b4a793ef7b9806ad0e1c2a72ad779700a3f4d6 100644 (file)
@@ -1,3 +1,9 @@
+2012-01-22  Richard Sandiford  <rdsandiford@googlemail.com>
+
+       PR target/51931
+       * gcc.c-torture/compile/20001226-1.c: Add nomips16 attribute.
+       * g++.dg/opt/longbranch1.C: Likewise.
+
 2012-01-22  Richard Sandiford  <rdsandiford@googlemail.com>
 
        * g++.old-deja/g++.pt/ptrmem6.C: xfail a test for ARM and MIPS
index a64a57aea2ad4184cf407cc34cfa220c2d493be3..df545012cc7975894be7edd667bf53047d04df6d 100644 (file)
         muchcode; muchcode; muchcode; muchcode; muchcode; muchcode; \
         muchcode; muchcode; muchcode; muchcode; muchcode; muchcode
 
+#ifdef __mips
+/* See PR 51931.  */
+__attribute__((nomips16))
+#endif
 int
 main (int argc, char **argv)
 {
index 127c4daec45a6fceaa90b11c6de3959d8c5fc1eb..e833fb044c6c631954f31074e096c9b60831b078 100644 (file)
 #define C1024(x,y) C256(x,y) C256(x+16,y) C256(x+32,y) C256(x+48,y)
 #define C4096(x,y) C1024(x,y) C1024(x,y+16) C1024(x,y+32) C1024(x,y+48)
 
+#ifdef __mips
+/* See PR 51931.  */
+__attribute__((nomips16))
+#endif
 unsigned foo(int x[64], int y[64])
 {
   C4096(x,y);