aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2013-01-13 08:54:41 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2013-01-13 08:54:41 +0000
commit8816ac704c531d14de865a9f86098edac06554e7 (patch)
treea8246fab727d1b37c35e44a826cbd4c6384d9470
parent140516c568165e2cb46d8b07cb78681ee1975172 (diff)
downloadgcc-8816ac704c531d14de865a9f86098edac06554e7.zip
gcc-8816ac704c531d14de865a9f86098edac06554e7.tar.gz
gcc-8816ac704c531d14de865a9f86098edac06554e7.tar.bz2
unroll_5.c: Add nomips16 attributes.
gcc/testsuite/ * gcc.dg/unroll_5.c: Add nomips16 attributes. From-SVN: r195132
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/unroll_5.c8
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index e4117fb..37de4ba 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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>
diff --git a/gcc/testsuite/gcc.dg/unroll_5.c b/gcc/testsuite/gcc.dg/unroll_5.c
index fa62bbe..edb9c26 100644
--- a/gcc/testsuite/gcc.dg/unroll_5.c
+++ b/gcc/testsuite/gcc.dg/unroll_5.c
@@ -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;