This is the mail archive of the gcc@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: Running 32-bit testsuite on x86_64 - dg-skip-if help


On Tue, Jan 04, 2005 at 09:03:43AM +0100, Andreas Jaeger wrote:
> 
> One more question: gcc.dg/i386-local.c has:
> 
> /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
> /* { dg-options "-O2 -funit-at-a-time" } */
> /* { dg-final { scan-assembler "magic\[^\\n\]*eax" { target i?86-*-* } } } */
> /* { dg-final { scan-assembler "magic\[^\\n\]*edi" { target x86_64-*-* } } } */
> 
> What's the best way t o write the two dg-final lines so that the test
> does the right thing for both 32-bit and 64-bit code?

There was a change recently that allows effective-target keywords to be
used in any xfail or target list in tests that use lib/gcc-dg.exp.  The
first dg-final can use { target ilp32 } and the second { target lp64 }.

Janis


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