From patchwork Tue Oct 19 11:52:32 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: 0002-Fix-32-bit-alignment for Core i7 Date: Tue, 19 Oct 2010 01:52:32 -0000 From: Maxim Kuvyrkov X-Patchwork-Id: 68326 Message-Id: <4CBD8680.5010302@codesourcery.com> To: gcc-patches Cc: Richard Henderson , Bernd Schmidt , "H.J. Lu" This patch adjusts alignment for Core i7 32-bit ABI. This speeds up SPECfp by 0.4% and SPECint by 0.2% in 32-bit mode. Tested by bootstrapping on i686-pc-linux-gnu. OK to commit? Thank you, diff --git a/gcc/config/i386/i386-c.c b/gcc/config/i386/i386-c.c index 1846efb..3b4409e 100644 --- a/gcc/config/i386/i386-c.c +++ b/gcc/config/i386/i386-c.c @@ -122,6 +122,11 @@ ix86_target_macros_internal (int isa_flag, def_or_undef (parse_in, "__core2"); def_or_undef (parse_in, "__core2__"); break; + case PROCESSOR_COREI7_32: + case PROCESSOR_COREI7_64: + def_or_undef (parse_in, "__corei7"); + def_or_undef (parse_in, "__corei7__"); + break; case PROCESSOR_ATOM: def_or_undef (parse_in, "__atom"); def_or_undef (parse_in, "__atom__"); @@ -197,6 +202,10 @@ ix86_target_macros_internal (int isa_flag, case PROCESSOR_CORE2: def_or_undef (parse_in, "__tune_core2__"); break; + case PROCESSOR_COREI7_32: + case PROCESSOR_COREI7_64: + def_or_undef (parse_in, "__tune_corei7__"); + break; case PROCESSOR_ATOM: def_or_undef (parse_in, "__tune_atom__"); break; diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index d04c20e..00d37a1 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -1355,6 +1355,8 @@ const struct processor_costs *ix86_cost = &pentium_cost; #define m_PENT4 (1<