From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 39367 invoked by alias); 3 Jul 2015 12:08:28 -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 39235 invoked by uid 89); 3 Jul 2015 12:08:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.7 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 X-HELO: bin-vsp-out-03.atm.binero.net Received: from vsp-unauthed02.binero.net (HELO bin-vsp-out-03.atm.binero.net) (195.74.38.227) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 03 Jul 2015 12:08:24 +0000 X-Halon-ID: 30ec45fa-217c-11e5-8f57-0050569116f7 Authorized-sender: cederman@gaisler.com Received: from cederman.localnet (unknown [81.170.187.120]) by bin-vsp-out-03.atm.binero.net (Halon Mail Gateway) with ESMTPA; Fri, 3 Jul 2015 14:08:18 +0200 (CEST) From: Daniel Cederman To: gcc-patches@gcc.gnu.org Cc: ebotcazou@adacore.com, daniel@gaisler.com Subject: [PATCH] Update instruction cost for LEON Date: Fri, 03 Jul 2015 12:08:00 -0000 Message-Id: <1435925299-6629-3-git-send-email-cederman@gaisler.com> In-Reply-To: <1435925299-6629-1-git-send-email-cederman@gaisler.com> References: <1435925299-6629-1-git-send-email-cederman@gaisler.com> X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg00196.txt.bz2 gcc/ChangeLog: 2015-07-03 Daniel Cederman * config/sparc/sparc.c (struct processor_costs): Set div cost for leon to match UT699 and AT697F. Set mul cost for leon3 to match standard leon3. --- gcc/config/sparc/sparc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index e0d40a5..54341c5 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -251,8 +251,8 @@ struct processor_costs leon_costs = { COSTS_N_INSNS (5), /* imul */ COSTS_N_INSNS (5), /* imulX */ 0, /* imul bit factor */ - COSTS_N_INSNS (5), /* idiv */ - COSTS_N_INSNS (5), /* idivX */ + COSTS_N_INSNS (35), /* idiv */ + COSTS_N_INSNS (35), /* idivX */ COSTS_N_INSNS (1), /* movcc/movr */ 0, /* shift penalty */ }; @@ -272,8 +272,8 @@ struct processor_costs leon3_costs = { COSTS_N_INSNS (15), /* fdivd */ COSTS_N_INSNS (22), /* fsqrts */ COSTS_N_INSNS (23), /* fsqrtd */ - COSTS_N_INSNS (5), /* imul */ - COSTS_N_INSNS (5), /* imulX */ + COSTS_N_INSNS (1), /* imul */ + COSTS_N_INSNS (1), /* imulX */ 0, /* imul bit factor */ COSTS_N_INSNS (35), /* idiv */ COSTS_N_INSNS (35), /* idivX */ -- 2.4.3