loop-1.c: Ignore declaration when counting function calls on ia64.
authorSteve Ellcey <sje@cup.hp.com>
Wed, 19 Jan 2005 16:51:34 +0000 (16:51 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Wed, 19 Jan 2005 16:51:34 +0000 (16:51 +0000)
* gcc.dg/tree-ssa/loop-1.c:  Ignore declaration when
counting function calls on ia64.

From-SVN: r93904

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/loop-1.c

index e6749d6518cc0d7653d601fd0449dd66c142a6a5..0d56d819c53b8dbd91b968a27a5fd4004557e318 100644 (file)
@@ -1,3 +1,8 @@
+2005-01-19  Steve Ellcey  <sje@cup.hp.com>
+
+       * gcc.dg/tree-ssa/loop-1.c:  Ignore declaration when
+       counting function calls on ia64.
+
 2005-01-19  Jakub Jelinek  <jakub@redhat.com>
 
        PR rtl-optimization/15139
index fa9670fa7f72ee946416deb0c1a03b772b5f640b..2efbbc73d8e77d1bafa9bf6b3edbc7c16a37e0dd 100644 (file)
@@ -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*-*-* } } } */