From: Daniel Cederman <cederman@gaisler.com>
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 [thread overview]
Message-ID: <1435925299-6629-3-git-send-email-cederman@gaisler.com> (raw)
In-Reply-To: <1435925299-6629-1-git-send-email-cederman@gaisler.com>
gcc/ChangeLog:
2015-07-03 Daniel Cederman <cederman@gaisler.com>
* 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
next prev parent reply other threads:[~2015-07-03 12:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-03 12:08 [PATCH] Do not use floating point registers when compiling with -msoft-float for SPARC Daniel Cederman
2015-07-03 12:08 ` Daniel Cederman [this message]
2015-07-07 10:37 ` [PATCH] Update instruction cost for LEON Eric Botcazou
2015-07-07 12:15 ` Daniel Cederman
2015-07-03 12:08 ` [PATCH] save takes a single integer (register or 13-bit signed immediate) Daniel Cederman
2015-07-07 10:35 ` Eric Botcazou
2015-07-07 12:16 ` Daniel Cederman
2015-07-07 16:51 ` Eric Botcazou
2015-07-07 10:32 ` [PATCH] Do not use floating point registers when compiling with -msoft-float for SPARC Eric Botcazou
2015-07-07 12:16 ` Daniel Cederman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1435925299-6629-3-git-send-email-cederman@gaisler.com \
--to=cederman@gaisler.com \
--cc=daniel@gaisler.com \
--cc=ebotcazou@adacore.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).