From 643e447b3ec25d706e0334290b4f497a6f963eb0 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Sun, 22 Jan 2012 10:33:07 +0000 Subject: [PATCH] re PR target/51931 (No support for MIPS16 long branches) 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 | 6 ++++++ gcc/testsuite/g++.dg/opt/longbranch1.C | 4 ++++ gcc/testsuite/gcc.c-torture/compile/20001226-1.c | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 86986afc7d0..f0b4a793ef7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2012-01-22 Richard Sandiford + + PR target/51931 + * gcc.c-torture/compile/20001226-1.c: Add nomips16 attribute. + * g++.dg/opt/longbranch1.C: Likewise. + 2012-01-22 Richard Sandiford * g++.old-deja/g++.pt/ptrmem6.C: xfail a test for ARM and MIPS diff --git a/gcc/testsuite/g++.dg/opt/longbranch1.C b/gcc/testsuite/g++.dg/opt/longbranch1.C index a64a57aea2a..df545012cc7 100644 --- a/gcc/testsuite/g++.dg/opt/longbranch1.C +++ b/gcc/testsuite/g++.dg/opt/longbranch1.C @@ -26,6 +26,10 @@ 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) { diff --git a/gcc/testsuite/gcc.c-torture/compile/20001226-1.c b/gcc/testsuite/gcc.c-torture/compile/20001226-1.c index 127c4daec45..e833fb044c6 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20001226-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20001226-1.c @@ -21,6 +21,10 @@ #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);