This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Running 32-bit testsuite on x86_64 - dg-skip-if help
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: Andreas Jaeger <aj at suse dot de>
- Cc: gcc at gcc dot gnu dot org, Janis Johnson <janis187 at us dot ibm dot com>
- Date: Tue, 4 Jan 2005 10:35:15 -0800
- Subject: Re: Running 32-bit testsuite on x86_64 - dg-skip-if help
- References: <m37jmtps2o.fsf@gromit.moeb> <m3u0pxoc2o.fsf@gromit.moeb>
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