* {PATCH] RL78 movdf define expand
@ 2018-02-16 14:15 Sebastian Perta
2018-02-16 18:44 ` DJ Delorie
0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Perta @ 2018-02-16 14:15 UTC (permalink / raw)
To: gcc-patches; +Cc: 'DJ Delorie'
Hello,
The following patch defines a new expand movdf, it is similar to the movdi
expand which I implemented a while ago.
The usefulness of the patch can be seen easily even on the following test
case where it reduces the code size from 199 bytes to 109 bytes:
long double long_double_add(long double a, long double b)
{
return a + b;
}
Regression test is OK, tested with the following command:
make -k check-gcc RUNTESTFLAGS=--target_board=rl78-sim
Best Regards,
Sebastian
Index: ChangeLog
===================================================================
--- ChangeLog (revision 257733)
+++ ChangeLog (working copy)
@@ -1,3 +1,7 @@
+2018-02-16 Sebastian Perta <sebastian.perta@renesas.com>
+
+ * config/rl78/rl78.md (movdf): New define expand.
+
2018-02-16 Richard Biener <rguenther@suse.de>
PR tree-optimization/84417
Index: rl78.md
===================================================================
--- rl78.md (revision 257733)
+++ rl78.md (working copy)
@@ -727,6 +727,14 @@
DONE;"
)
+(define_expand "movdf"
+ [(set (match_operand:DF 0 "nonimmediate_operand" "")
+ (match_operand:DF 1 "general_operand" ""))]
+ ""
+ "rl78_split_movdi(operands, DFmode);
+ DONE;"
+)
+
(define_expand "umindi3"
[(set (match_operand:DI 0 "nonimmediate_operand" "")
(umin:DI (match_operand:DI 1 "general_operand" "")
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: {PATCH] RL78 movdf define expand
2018-02-16 14:15 {PATCH] RL78 movdf define expand Sebastian Perta
@ 2018-02-16 18:44 ` DJ Delorie
0 siblings, 0 replies; 2+ messages in thread
From: DJ Delorie @ 2018-02-16 18:44 UTC (permalink / raw)
To: Sebastian Perta; +Cc: gcc-patches
This is OK. In the future, please include the Changelog entry as a
separate text, not part of the patch, as it will rarely apply cleanly.
"Sebastian Perta" <sebastian.perta@renesas.com> writes:
>
> * config/rl78/rl78.md (movdf): New define expand.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-02-16 18:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-16 14:15 {PATCH] RL78 movdf define expand Sebastian Perta
2018-02-16 18:44 ` DJ Delorie
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).