This is the mail archive of the gcc-patches@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]

gcc.dg/i386-local.c: Handle -m32/-m64


This patch handles -m32/-m64 testsuite runs correctly.

Ok to commit?  Tested with full bootstrap and regtest with running
also with -m32 on Linux/AMD64,

Andreas

2005-01-05  Andreas Jaeger  <aj@suse.de>

	* gcc.dg/i386-local.c: Handle -m32/-m64 runs correctly.

============================================================
Index: gcc/testsuite/gcc.dg/i386-local.c
--- gcc.dg/i386-local.c	6 Apr 2004 20:29:09 -0000	1.4
+++ gcc.dg/i386-local.c	6 Jan 2005 06:38:03 -0000
@@ -1,7 +1,7 @@
 /* { 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-*-* } } } */
+/* { dg-final { scan-assembler "magic\[^\\n\]*eax" { target ilp32 } } } */
+/* { dg-final { scan-assembler "magic\[^\\n\]*edi" { target lp64 } } } */
 
 /* Verify that local calling convention is used.  */
 static t(int) __attribute__ ((noinline));

-- 
 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]