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]

[patch] testsuite: skip four ppc tests if not generating lp64 code


Some recent tests for powerpc64 specify they are to be run with -m64,
but that causes problems when the entire testsuite is run with both -m32
and -m64, since the latter options are appended and override the options
in the test.  This patch fixes four such tests so that they are skipped
(marked UNSUPPORTED) if we're not currently generating LP64 code.

Nathan and Pete, you added these tests; does this look reasonable or am
I missing something?

2004-11-17  Janis Johnson  <janis187@us.ibm.com>

	* gcc.dg/ppc-bitfield1.c: Skip if not LP64, don't specify -m64.
	* gcc.dg/ppc-and-1.c: Ditto.
	* gcc.dg/ppc-compare-1.c: Ditto.
	* gcc.dg/ppc-mov-1.c: Ditto

Index: gcc.dg/ppc-bitfield1.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.dg/ppc-bitfield1.c,v
retrieving revision 1.1
diff -u -p -r1.1 ppc-bitfield1.c
--- gcc.dg/ppc-bitfield1.c	2 Nov 2004 09:50:35 -0000	1.1
+++ gcc.dg/ppc-bitfield1.c	17 Nov 2004 21:53:32 -0000
@@ -1,5 +1,6 @@
 /* { dg-do compile { target powerpc64-*-* } } */
-/* { dg-options "-m64 -O2" } */
+/* { dg-require-effective-target lp64 } */
+/* { dg-options "-O2" } */
 
 /* { dg-final { scan-assembler-not "rlwinm \[0-9\]+,\[0-9\]+,\[0-9\]+,1,31"  } } */
 /* { dg-final { scan-assembler-not "rlwinm \[0-9\]+,\[0-9\]+,\[0-9\]+,0xffffffff" } } */
Index: gcc.dg/ppc-and-1.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.dg/ppc-and-1.c,v
retrieving revision 1.1
diff -u -p -r1.1 ppc-and-1.c
--- gcc.dg/ppc-and-1.c	11 Nov 2004 17:03:33 -0000	1.1
+++ gcc.dg/ppc-and-1.c	17 Nov 2004 21:53:50 -0000
@@ -1,5 +1,6 @@
 /* { dg-do compile { target powerpc64-*-* } } */
-/* { dg-options "-m64 -O2" } */
+/* { dg-require-effective-target lp64 } */
+/* { dg-options "-O2" } */
 
 /* { dg-final { scan-assembler "rlwinm \[0-9\]+,\[0-9\]+,0,0,30"  } } */
 /* { dg-final { scan-assembler "rlwinm \[0-9\]+,\[0-9\]+,0,29,30"  } } */
Index: gcc.dg/ppc-compare-1.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.dg/ppc-compare-1.c,v
retrieving revision 1.1
diff -u -p -r1.1 ppc-compare-1.c
--- gcc.dg/ppc-compare-1.c	11 Nov 2004 08:40:43 -0000	1.1
+++ gcc.dg/ppc-compare-1.c	17 Nov 2004 21:54:18 -0000
@@ -1,5 +1,6 @@
 /* { dg-do compile { target powerpc64-*-* } } */
-/* { dg-options "-m64 -O2" } */
+/* { dg-require-effective-target lp64 } */
+/* { dg-options "-O2" } */
 
 /* { dg-final { scan-assembler-not "cmpw" } } */
 
Index: gcc.dg/ppc-mov-1.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.dg/ppc-mov-1.c,v
retrieving revision 1.1
diff -u -p -r1.1 ppc-mov-1.c
--- gcc.dg/ppc-mov-1.c	11 Nov 2004 08:49:17 -0000	1.1
+++ gcc.dg/ppc-mov-1.c	17 Nov 2004 21:54:54 -0000
@@ -1,5 +1,6 @@
 /* { dg-do compile { target powerpc64-*-* } } */
-/* { dg-options "-m64 -O2" } */
+/* { dg-require-effective-target lp64 } */
+/* { dg-options "-O2" } */
 
 /* { dg-final { scan-assembler-not "fmr \[0-9\]+,\[0-9\]+" } }
 


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