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]

[committed] Fix MIPS32 DSP tests for 64-bit targets


The new DSP tests were failing on 64-bit targets because the choice
of -mips32 conflicted with the prevailing 64-bit ABI.  Fixed by using
-march=mips32 instead.  [-march=mips32 is the canonical option as far
as mips.exp is concerned.  It tells the harness to select a 32-bit ABI,
or to skip the test when that isn't possible.  See the comments in
mips.exp for details.]

Tested on mips64-elf, applied to mainline.

Richard


	* gcc.target/mips/mips32-dsp.c: Use -march=mips32 instead of -mips32.
	* gcc.target/mips/mips32-dsp-type.c: Likewise.

Index: testsuite/gcc.target/mips/mips32-dsp.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.target/mips/mips32-dsp.c,v
retrieving revision 1.1
diff -u -p -F^\([(a-zA-Z0-9_]\|#define\) -r1.1 mips32-dsp.c
--- testsuite/gcc.target/mips/mips32-dsp.c	23 Jul 2005 08:36:54 -0000	1.1
+++ testsuite/gcc.target/mips/mips32-dsp.c	28 Jul 2005 08:14:48 -0000
@@ -1,6 +1,6 @@
 /* Test MIPS32 DSP instructions */
 /* { dg-do compile } */
-/* { dg-mips-options "-mips32 -mdsp" } */
+/* { dg-mips-options "-march=mips32 -mdsp" } */
 /* { dg-final { scan-assembler "addq.ph" } } */
 /* { dg-final { scan-assembler "addq_s.ph" } } */
 /* { dg-final { scan-assembler "addq_s.w" } } */
Index: testsuite/gcc.target/mips/mips32-dsp-type.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.target/mips/mips32-dsp-type.c,v
retrieving revision 1.1
diff -u -p -F^\([(a-zA-Z0-9_]\|#define\) -r1.1 mips32-dsp-type.c
--- testsuite/gcc.target/mips/mips32-dsp-type.c	23 Jul 2005 08:36:54 -0000	1.1
+++ testsuite/gcc.target/mips/mips32-dsp-type.c	28 Jul 2005 08:14:48 -0000
@@ -1,6 +1,6 @@
 /* Test MIPS32 DSP instructions */
 /* { dg-do compile } */
-/* { dg-mips-options "-mips32 -mdsp" } */
+/* { dg-mips-options "-march=mips32 -mdsp" } */
 /* { dg-final { scan-assembler "addq.ph" } } */
 /* { dg-final { scan-assembler "addu.qb" } } */
 /* { dg-final { scan-assembler "subq.ph" } } */


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