From d257df9b5e60eeee8b09b5d23a496bdaa75e143b Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Sun, 5 Feb 2012 15:01:06 +0000 Subject: [PATCH] stringop-2.c (main): Add a nomips16 attribute on MIPS targets. gcc/testsuite/ * gcc.dg/tree-prof/stringop-2.c (main): Add a nomips16 attribute on MIPS targets. * gfortran.dg/pr45636.f90: XFAIL for MIPS16 targets. From-SVN: r183911 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.dg/tree-prof/stringop-2.c | 4 ++++ gcc/testsuite/gfortran.dg/pr45636.f90 | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9b8529663f4..50143e4d6fd 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2012-02-05 Richard Sandiford + + * gcc.dg/tree-prof/stringop-2.c (main): Add a nomips16 attribute + on MIPS targets. + * gfortran.dg/pr45636.f90: XFAIL for MIPS16 targets. + 2012-02-05 Richard Sandiford PR target/52125 diff --git a/gcc/testsuite/gcc.dg/tree-prof/stringop-2.c b/gcc/testsuite/gcc.dg/tree-prof/stringop-2.c index d5c58561be2..f70fafba3a2 100644 --- a/gcc/testsuite/gcc.dg/tree-prof/stringop-2.c +++ b/gcc/testsuite/gcc.dg/tree-prof/stringop-2.c @@ -3,6 +3,10 @@ int a[1000]; int b[1000]; int size=1; int max=10000; +#ifdef __mips +/* We allow short memcpy()s for MIPS16. */ +int __attribute__((nomips16)) +#endif main() { int i; diff --git a/gcc/testsuite/gfortran.dg/pr45636.f90 b/gcc/testsuite/gfortran.dg/pr45636.f90 index 24447e8375c..ee7cf3863cb 100644 --- a/gcc/testsuite/gfortran.dg/pr45636.f90 +++ b/gcc/testsuite/gfortran.dg/pr45636.f90 @@ -10,5 +10,5 @@ program main b = y call sub(a, b) end program main -! { dg-final { scan-tree-dump-times "memset" 0 "forwprop2" } } +! { dg-final { scan-tree-dump-times "memset" 0 "forwprop2" { xfail { mips*-*-* && { ! nomips16 } } } } } ! { dg-final { cleanup-tree-dump "forwprop2" } }