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 for gcc.dg/tree-ssa/loop-1.c test case on IA64.


> Janis Johnson wrote:
> 
> > Perhaps xfail with a comment isn't all that ugly after all.
> 
> I can live with that, even thought it's not ideal.
> 
> -- 
> Mark Mitchell


Here is a patch with comments that I have tested on ia64 and hppa.  OK
to check in?

Steve Ellcey
sje@cup.hp.com


2005-01-19  Steve Ellcey  <sje@cup.hp.com>

	* gcc.dg/tree-ssa/loop-1.c:  Ignore declaration when
	counting function calls on ia64.


*** gcc.orig/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c	Mon Jan 10 14:57:00 2005
--- gcc/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c	Wed Jan 19 08:34:44 2005
*************** void xxx(void)
*** 24,29 ****
  /* { dg-final { scan-tree-dump-times "Added canonical iv to loop 1, 4 iterations" 1 "ivcanon"} } */
  /* { dg-final { scan-tree-dump-times "Unrolled loop 1 completely" 1 "cunroll"} } */
  /* { dg-final { scan-tree-dump-times "foo" 5 "vars"} } */
! /* { dg-final { if [ istarget hppa*-*-* ] { scan-assembler-times "foo,%r" 5} else { scan-assembler-times "foo" 5} } }  */
  
  
--- 24,36 ----
  /* { dg-final { scan-tree-dump-times "Added canonical iv to loop 1, 4 iterations" 1 "ivcanon"} } */
  /* { dg-final { scan-tree-dump-times "Unrolled loop 1 completely" 1 "cunroll"} } */
  /* { dg-final { scan-tree-dump-times "foo" 5 "vars"} } */
! 
! /* Because hppa and ia64 targets include an external declaration for foo as
!    well as the calls we need to look for something more specific then just
!    foo in order to count only the calls and not the declaration.  */
! 
! /* { dg-final { scan-assembler times "foo" 5 { xfail hppa-*-* ia64-*-* } } } */
! /* { dg-final { scan-assembler-times "foo,%r" 5 { target hppa*-*-* } } } */
! /* { dg-final { scan-assembler-times "= foo"  5 { target ia64*-*-* } } } */
  
  


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