public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/c++-modules] [ARC] Update ARC600 multiplication cost.
@ 2020-01-31 17:42 Nathan Sidwell
0 siblings, 0 replies; only message in thread
From: Nathan Sidwell @ 2020-01-31 17:42 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:f261388f1a9f8ee4abfefff32bdfe6046914b7f2
commit f261388f1a9f8ee4abfefff32bdfe6046914b7f2
Author: Claudiu Zissulescu <claziss@gmail.com>
Date: Mon Jan 27 14:51:03 2020 +0200
[ARC] Update ARC600 multiplication cost.
gcc/
xxxx-xx-xx Claudiu Zissulescu <claziss@synopsys.com>
* config/arc/arc.c (arc_rtx_costs): Update mul64 cost.
Diff:
---
gcc/ChangeLog | 4 ++++
gcc/config/arc/arc.c | 6 ++++++
2 files changed, 10 insertions(+)
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d75d563..a7ad5fa 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2020-01-27 Claudiu Zissulescu <claziss@synopsys.com>
+ * config/arc/arc.c (arc_rtx_costs): Update mul64 cost.
+
+2020-01-27 Claudiu Zissulescu <claziss@synopsys.com>
+
* config/arc/arc-protos.h (gen_mlo): Remove.
(gen_mhi): Likewise.
* config/arc/arc.c (AUX_MULHI): Define.
diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c
index a1f863f..bc34235 100644
--- a/gcc/config/arc/arc.c
+++ b/gcc/config/arc/arc.c
@@ -5877,6 +5877,12 @@ arc_rtx_costs (rtx x, machine_mode mode, int outer_code,
nolimm = true;
if (satisfies_constraint_Clo (x))
nolimm = true;
+ break;
+ case MULT:
+ if (TARGET_MUL64_SET)
+ if (SIGNED_INT12 (INTVAL (x)))
+ nolimm = true;
+ break;
default:
break;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-31 17:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-31 17:42 [gcc/devel/c++-modules] [ARC] Update ARC600 multiplication cost Nathan Sidwell
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).