gcc/testsuite/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 13 Jan 2013 08:54:41 +0000 (08:54 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 13 Jan 2013 08:54:41 +0000 (08:54 +0000)
* gcc.dg/unroll_5.c: Add nomips16 attributes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195132 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/unroll_5.c

index e4117fb..37de4ba 100644 (file)
@@ -1,5 +1,9 @@
 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
 
+       * gcc.dg/unroll_5.c: Add nomips16 attributes.
+
+2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
+
        * gcc.dg/tree-ssa/ssa-dom-thread-4.c: Update expected results for MIPS.
 
 2013-01-12  Janus Weil  <janus@gcc.gnu.org>
index fa62bbe..edb9c26 100644 (file)
@@ -4,6 +4,11 @@
 
 void abort (void);
 int *a;
+/* Fails on MIPS16 because equality checks are implemented using XOR.
+   It's unlikely MIPS16 users would want unrolling anyway.  */
+#ifdef __mips
+__attribute__((nomips16))
+#endif
 int t()
 {
    int i;
@@ -12,6 +17,9 @@ int t()
       return 1;
   return 0;
 }
+#ifdef __mips
+__attribute__((nomips16))
+#endif
 int t2()
 {
    int i;