Patchwork [i386] : Add -mtune=generic to gcc.target/i386/sw-1.c

login
register
mail settings
Submitter Uros Bizjak
Date Nov. 25, 2012, 10:07 p.m.
Message ID <CAFULd4Yi+aP=ei0NdyP4hO9Ra7ttyaqZhbMetRypcaaVb7Swfw@mail.gmail.com>
Download mbox | patch
Permalink /patch/201576/
State New
Headers show

Comments

Uros Bizjak - Nov. 25, 2012, 10:07 p.m.
Hello!

Otherwise, we can generate real memcpy call for certain targets
(corei7) that interferes with shrink-wrapping.

2012-11-25  Uros Bizjak  <ubizjak@gmail.com>

	* gcc.target/i386/sw-1.c (dg-options): Add -mtune=generic.

Tested on x86_64-linux-gnu, committed to mainline SVN.

Uros.

Patch

Index: gcc.target/i386/sw-1.c
===================================================================
--- gcc.target/i386/sw-1.c	(revision 193792)
+++ gcc.target/i386/sw-1.c	(working copy)
@@ -1,5 +1,5 @@ 
 /* { dg-do compile } */
-/* { dg-options "-O2 -fshrink-wrap -fdump-rtl-pro_and_epilogue" } */
+/* { dg-options "-O2 -mtune=generic -fshrink-wrap -fdump-rtl-pro_and_epilogue" } */
 /* { dg-skip-if "No shrink-wrapping preformed" { x86_64-*-mingw* } { "*" } { "" } } */
 
 #include <string.h>