From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 128936 invoked by alias); 17 May 2017 19:36:27 -0000 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 Received: (qmail 128667 invoked by uid 89); 17 May 2017 19:36:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RP_MATCHES_RCVD,SPF_PASS,UNPARSEABLE_RELAY autolearn=ham version=3.3.2 spammy=Hx-languages-length:980 X-HELO: userp1040.oracle.com Received: from userp1040.oracle.com (HELO userp1040.oracle.com) (156.151.31.81) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 17 May 2017 19:36:24 +0000 Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v4HJaP24014451 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 17 May 2017 19:36:25 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v4HJaOhp021092 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 17 May 2017 19:36:25 GMT Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v4HJaO5F008373 for ; Wed, 17 May 2017 19:36:24 GMT Received: from sheldon.us.oracle.com (/10.147.27.238) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 17 May 2017 12:36:23 -0700 From: Sheldon Lobo To: gcc-patches@gcc.gnu.org Subject: [PATCH 3/4] Add a branch cost for SPARC M7. Date: Wed, 17 May 2017 20:10:00 -0000 Message-Id: <1495049778-20262-4-git-send-email-sheldon.lobo@oracle.com> In-Reply-To: <1495049778-20262-1-git-send-email-sheldon.lobo@oracle.com> References: <1495049778-20262-1-git-send-email-sheldon.lobo@oracle.com> X-IsSubscribed: yes X-SW-Source: 2017-05/txt/msg01414.txt.bz2 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch latency to 1. --- gcc/config/sparc/sparc.h | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index 6277738..686a3d5 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -1568,7 +1568,8 @@ do { \ On Niagara-2 and Niagara-3, a not-taken branch costs 1 cycle whereas a taken branch costs 6 cycles. - The T4 Supplement specifies the branch latency at 2 cycles. */ + The T4 Supplement specifies the branch latency at 2 cycles. + The M7 Supplement specifies the branch latency at 1 cycle. */ #define BRANCH_COST(speed_p, predictable_p) \ ((sparc_cpu == PROCESSOR_V9 \ @@ -1583,7 +1584,9 @@ do { \ ? 5 \ : (sparc_cpu == PROCESSOR_NIAGARA4 \ ? 2 \ - : 3))))) + : (sparc_cpu == PROCESSOR_NIAGARA7 \ + ? 1 \ + : 3)))))) /* Control the assembler format that we output. */ -- 1.7.1