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]

Running 32-bit testsuite on x86_64 - dg-skip-if help


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

Attachment: pgp00000.pgp
Description: PGP signature


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