Patch for gcc.dg/tree-ssa/loop-1.c test case on IA64.

Janis Johnson janis187@us.ibm.com
Tue Jan 11 00:50:00 GMT 2005


On Mon, Jan 10, 2005 at 04:28:43PM -0800, Steve Ellcey wrote:
> > 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*-*-*} } } */
> > 
> > Janis
> 
> If I also include:
> 
> /* { dg-final { scan-assembler-times "foo" 5 } }  */
> 
> at the end for the non-hppa, non-ia64 platforms, will this cause a
> failure on hppa and ia64 or does only the first dg-final with a matching
> target get executed?

They're all processed.  I'm in the middle of documenting this stuff.

A target list can now consist of an effective-target keyword.  Eventually
it would be nice to support logical operators in a target list, but we
don't now.  It's really ugly, but you could define an effective target
for everything except those two and use its keyword in the final check,
as in:

/* { dg-final {scan-assembler times "foo" 5 { target not_hppa_or_ia64 } } } */.

Janis



More information about the Gcc-patches mailing list