]> gcc.gnu.org Git - gcc.git/commitdiff
unroll_5.c: Add nomips16 attributes.
authorRichard Sandiford <rdsandiford@googlemail.com>
Sun, 13 Jan 2013 08:54:41 +0000 (08:54 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sun, 13 Jan 2013 08:54:41 +0000 (08:54 +0000)
gcc/testsuite/
* gcc.dg/unroll_5.c: Add nomips16 attributes.

From-SVN: r195132

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

index e4117fb27bcea674cecb1675c426031d7cf03788..37de4ba527cf45f06a3d08cd3124c91fbd2088ac 100644 (file)
@@ -1,3 +1,7 @@
+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.
index fa62bbe8eaeb66d6726aa96296cbc194ccd3a271..edb9c26a68564bc78acab64e4d31a3f29c73bf08 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;
This page took 0.064182 seconds and 5 git commands to generate.