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]

Tweak gcc.target/i386/pr39496.c and g++.dg/other/pr39496.C


They don't pass on i586 because there is a push and the regexp expects a mov.

Fixed by adding -mtune=i686 to the list of options, tested on i586-suse-linux, 
applied on the mainline and the 4.4 branch as obvious.


2009-04-18  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc.target/i386/pr39496.c: Compile with -mtune=i686.
	* g++.dg/other/pr39496.C: Likewise.


-- 
Eric Botcazou
Index: gcc.target/i386/pr39496.c
===================================================================
--- gcc.target/i386/pr39496.c	(revision 146259)
+++ gcc.target/i386/pr39496.c	(working copy)
@@ -1,6 +1,6 @@
 /* PR target/39496 */
 /* { dg-do compile { target { { i?86-*-linux* x86_64-*-linux* } && ilp32 } } } */
-/* { dg-options "-O0 -fverbose-asm -fno-omit-frame-pointer -msse2 -mfpmath=sse" } */
+/* { dg-options "-O0 -fverbose-asm -fno-omit-frame-pointer -mtune=i686 -msse2 -mfpmath=sse" } */
 /* Verify that {foo,bar}{,2}param are all passed on the stack, using
    normal calling conventions, when not optimizing.  */
 /* { dg-final { scan-assembler "\[^0-9-\]8\\(%ebp\\),\[^\n\]*fooparam," } } */
Index: g++.dg/other/pr39496.C
===================================================================
--- g++.dg/other/pr39496.C	(revision 146259)
+++ g++.dg/other/pr39496.C	(working copy)
@@ -1,6 +1,6 @@
 // PR target/39496
 // { dg-do compile { target { { i?86-*-linux* x86_64-*-linux* } && ilp32 } } }
-// { dg-options "-O0 -fverbose-asm -fno-omit-frame-pointer -msse2 -mfpmath=sse" }
+// { dg-options "-O0 -fverbose-asm -fno-omit-frame-pointer -mtune=i686 -msse2 -mfpmath=sse" }
 // Verify that {foo,bar}{,2}param are all passed on the stack, using
 // normal calling conventions, when not optimizing.
 // { dg-final { scan-assembler "\[^0-9-\]8\\(%ebp\\),\[^\n\]*fooparam," } }

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