This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 4.5 4/N]: Integrate GCC with the complex math library MPC (testsuite)


On Tue, 19 May 2009, Andrew Pinski wrote:

> This testcase fails on spu-elf even if the testcase has #ifdef for SPU
> because the scan-tree-dump-times does not take into account the
> target.

Does this patch work for you?  If so, I'll install as obvious.

		--Kaveh


2009-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* gcc.dg/torture/builtin-math-5.c: Fix for SPU.

diff -rup orig/egcc-SVN20090521/gcc/testsuite/gcc.dg/torture/builtin-math-5.c egcc-SVN20090521/gcc/testsuite/gcc.dg/torture/builtin-math-5.c
--- orig/egcc-SVN20090521/gcc/testsuite/gcc.dg/torture/builtin-math-5.c	2009-05-16 02:01:01.000000000 +0200
+++ egcc-SVN20090521/gcc/testsuite/gcc.dg/torture/builtin-math-5.c	2009-05-21 05:45:41.000000000 +0200
@@ -40,7 +40,8 @@ void bar()
   fool (__builtin_csqrtl (-__builtin_infl()));
 }

-/* { dg-final { scan-tree-dump-times "csqrtf" 3 "original" } } */
+/* { dg-final { scan-tree-dump-times "csqrtf" 3 "original" { target { ! { spu*-*-* } } } } } */
+/* { dg-final { scan-tree-dump-times "csqrtf" 0 "original" { target { spu*-*-* } } } } */
 /* { dg-final { scan-tree-dump-times "csqrt " 3 "original" } } */
 /* { dg-final { scan-tree-dump-times "csqrtl" 3 "original" } } */
 /* { dg-final { cleanup-tree-dump "original" } } */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]