From dc60db907305ae58b7375f9c553df430a888ed06 Mon Sep 17 00:00:00 2001 From: Steve Ellcey Date: Wed, 19 Jan 2005 16:51:34 +0000 Subject: [PATCH] loop-1.c: Ignore declaration when counting function calls on ia64. * gcc.dg/tree-ssa/loop-1.c: Ignore declaration when counting function calls on ia64. From-SVN: r93904 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/tree-ssa/loop-1.c | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e6749d6518c..0d56d819c53 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-01-19 Steve Ellcey + + * gcc.dg/tree-ssa/loop-1.c: Ignore declaration when + counting function calls on ia64. + 2005-01-19 Jakub Jelinek PR rtl-optimization/15139 diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c index fa9670fa7f7..2efbbc73d8e 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c @@ -24,6 +24,13 @@ void xxx(void) /* { 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} } } */ + +/* 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*-*-* } } } */ -- 2.30.2