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] |
Andreas Jaeger <aj@suse.de> writes: > 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... 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? 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] |