Running 32-bit testsuite on x86_64 - dg-skip-if help
Andreas Jaeger
aj@suse.de
Tue Jan 4 07:33:00 GMT 2005
I'm bootstrapping on x86_64-linux-gnu and test always both the 32-bit
and 64-bit multilib (using -m32 for the former). Since the 32-bit
target is the x86 target, we could run all specific i?86 tests to get
more coverage.
I have two question:
- should we really do this for all i?68 specific tests?
- and what's the best way?
For example, gcc.misc-tests/i386-pf-3dnow-1.c has:
/* { dg-do compile { target i?86-*-* } } */
/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */
So, this will only run on i?86 if "-m64" is not given. If I add x86_64
as target, how can I only run it if -m32 is given? Would this be the
proper way?
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */
/* { dg-skip-if "" { x86_64-*-* } { "" } { "-m32" } } */
Or should we use?
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-require-effective-target ilp32 } */
What is better to do? The dg-require-effective-target compiles
another test program which might slow down the testsuite runs...
Andreas
--
Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20050104/5500422b/attachment.sig>
More information about the Gcc
mailing list