This is the mail archive of the 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.

On Jan 10, 2005, at 6:38 PM, Janis Johnson wrote:

On Mon, Jan 10, 2005 at 03:11:51PM -0800, Steve Ellcey wrote:
I would like to tweak the gcc.dg/tree-ssa/loop-1.c testcase so that it
correctly counts calls for ia64 in much the same way that it already
does for hppa.

The problem is that both hppa and ia64 put out global declarations as
well as the actual calls so the counting doesn't work if you just look
for the function name and you need to be more specific about the string
you count.

I tested this on hppa and ia64.
! /* { dg-final { if [ istarget hppa*-*-* ] { scan-assembler-times "foo,%r" 5; return } } } */
! /* { dg-final { if [ istarget ia64-*-* ] { scan-assembler-times "= foo" 5; return } } } */
! /* { dg-final { scan-assembler-times "foo" 5 } } */

Tests shouldn't use TCL code within the test directives, although some of them do. You can get rid of that now in this test by using:

/* { dg-final { scan-assembler-times "foo,%r" 5 { target hppa*-*-*} } } */
/* { dg-final { scan-assembler-times "= foo" 5 { target ia64*-*-*} } } */

The only problem with that is we still get a failure as the last dg-final
is still invoked.

-- Pinski

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