From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16840 invoked by alias); 12 Jul 2011 06:42:16 -0000 Received: (qmail 16832 invoked by uid 22791); 12 Jul 2011 06:42:15 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_BD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-pv0-f175.google.com (HELO mail-pv0-f175.google.com) (74.125.83.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 12 Jul 2011 06:42:01 +0000 Received: by pvf24 with SMTP id 24so3873045pvf.20 for ; Mon, 11 Jul 2011 23:42:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.250.29 with SMTP id x29mr2342501wfh.21.1310452920988; Mon, 11 Jul 2011 23:42:00 -0700 (PDT) Received: by 10.142.89.19 with HTTP; Mon, 11 Jul 2011 23:42:00 -0700 (PDT) Date: Tue, 12 Jul 2011 08:24:00 -0000 Message-ID: Subject: Re: AMD bdver2 enablement. From: Uros Bizjak To: gcc-patches@gcc.gnu.org Cc: "Jagasia, Harsha" , Jan Hubicka Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-07/txt/msg00873.txt.bz2 Hello! > 2011-07-11 Harsha Jagasia > > AMD bdver2 Enablement > * config.gcc (i[34567]86-*-linux* | ...): Add bdver2. > (case ${target}): Add bdver2. > * config/i386/driver-i386.c (host_detect_local_cpu): Let > -march=native recognize bdver2 processors. > * config/i386/i386-c.c (ix86_target_macros_internal): Add > bdver2 def_and_undef > * config/i386/i386.c (struct processor_costs bdver2_cost): New > bdver2 cost table. > (m_BDVER2): New definition. > (m_AMD_MULTIPLE): Includes m_BDVER2. > (initial_ix86_tune_features): Add bdver2 tuning. > (processor_target_table): Add bdver2 entry. > (static const char *const cpu_names): Add bdver2 entry. > (ix86_option_override_internal): Add bdver2 instruction sets. > (ix86_issue_rate): Add bdver2. > (ix86_adjust_cost): Add bdver2. > (has_dispatch): Add bdver2. > * config/i386/i386.h (TARGET_BDVER2): New definition. > (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2. > (enum processor_type): Add PROCESSOR_BDVER2. > * config/i386/i386.md (define_attr "cpu"): Add bdver2. > * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to > description. OK, with a small change - see below. @@ -1813,8 +1900,10 @@ const struct processor_costs *ix86_cost #define m_ATHLON_K8 (m_K8 | m_ATHLON) #define m_AMDFAM10 (1<