Running 32-bit testsuite on x86_64 - dg-skip-if help
Janis Johnson
janis187@us.ibm.com
Tue Jan 4 18:38:00 GMT 2005
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
More information about the Gcc
mailing list