From 8816ac704c531d14de865a9f86098edac06554e7 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Sun, 13 Jan 2013 08:54:41 +0000 Subject: [PATCH] unroll_5.c: Add nomips16 attributes. gcc/testsuite/ * gcc.dg/unroll_5.c: Add nomips16 attributes. From-SVN: r195132 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/unroll_5.c | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e4117fb27bc..37de4ba527c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2013-01-13 Richard Sandiford + + * gcc.dg/unroll_5.c: Add nomips16 attributes. + 2013-01-13 Richard Sandiford * gcc.dg/tree-ssa/ssa-dom-thread-4.c: Update expected results for MIPS. diff --git a/gcc/testsuite/gcc.dg/unroll_5.c b/gcc/testsuite/gcc.dg/unroll_5.c index fa62bbe8eae..edb9c26a685 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;