FW: [PATCH] rl78 umaxdi3 improvement

2017-12-07 Thread Sebastian Perta
Log === --- gcc/ChangeLog (revision 255466) +++ gcc/ChangeLog (working copy) @@ -1,3 +1,7 @@ +2017-12-07 Sebastian Perta + + * config/rl78/rl78.md: New define_expand "umaxdi3". + 2017-12-07 Richard Biener PR tree-optimization/83296 Index: gcc/con

[PATCH] rl78 smaxdi3 improvement

2017-12-07 Thread Sebastian Perta
Log === --- gcc/ChangeLog (revision 255467) +++ gcc/ChangeLog (working copy) @@ -1,3 +1,7 @@ +2017-12-07 Sebastian Perta + + * config/rl78/rl78.md: New define_expand "smaxdi3". + 2017-12-07 Michael Matz Add unroll and jam pass Index: gcc/config

[PATCH] rl78 smindi3 improvement

2017-12-07 Thread Sebastian Perta
Log === --- gcc/ChangeLog (revision 255468) +++ gcc/ChangeLog (working copy) @@ -1,3 +1,8 @@ +2017-12-07 Sebastian Perta + + * config/rl78/rl78.md: New define_expand "smindi3". + + 2017-12-07 Tamar Christina PR target/82641 Index: gcc/config

[PATCH] rl78 umindi3 improvement

2017-12-08 Thread Sebastian Perta
Log === --- gcc/ChangeLog (revision 255471) +++ gcc/ChangeLog (working copy) @@ -1,3 +1,7 @@ +2017-12-07 Sebastian Perta + + * config/rl78/rl78.md: New define_expand "umindi3". + 2017-12-07 Vladimir Makarov PR target/83252 Inde

[PATCH] rl78 anddi3 improvement

2017-12-08 Thread Sebastian Perta
gcc/ChangeLog (revision 255511) +++ gcc/ChangeLog (working copy) @@ -1,3 +1,7 @@ +2017-12-08 Sebastian Perta + + * config/rl78/rl78.md: New define_expand "anddi3". + 2017-12-08 Martin Jambor PR tree-optimization/83141 Index: gcc/confi

RE: [PATCH] rl78 anddi3 improvement

2017-12-11 Thread Sebastian Perta
Hello Jeff, Thank you for your comments. >>So I think you're ultimately far better off determining why GCC does not >>generate efficient code for 64bit logicals on the rl78 target. I totally agree with you, this is why: 1. I have another patch: I define_expand movdi in which I instruct GCC to use

[PATCH] RL78 movdi improvement

2017-12-11 Thread Sebastian Perta
you! Sebastian Index: ChangeLog === --- ChangeLog (revision 255538) +++ ChangeLog (working copy) @@ -1,3 +1,9 @@ +2017-12-12 Sebastian Perta + + * config/rl78/rl78-protos.h: New function declaration rl78_split_m

[PATCH] RL78 bswaphi improvement

2017-12-13 Thread Sebastian Perta
) @@ -1,3 +1,9 @@ +2017-12-12 Sebastian Perta + + * config/rl78/rl78-expand.md: New define_expand "bswaphi2" + * config/rl78/rl78-virt.md: New define_insn "*bswaphi2_virt" + * config/rl78/rl78-real.md: New define_insn "*bswaphi2_real" +

[PATCH] RL78 pragma address

2017-12-15 Thread Sebastian Perta
ndex: ChangeLog === --- ChangeLog (revision 255643) +++ ChangeLog (working copy) @@ -1,3 +1,19 @@ +2017-12-14 Sebastian Perta + + * config/rl78/rl78.c (rl78_get_pragma_address): New function + * config/rl78/rl78.c (rl78_note_pragm

[PATCH] RX pragma address

2018-01-05 Thread Sebastian Perta
ndex: ChangeLog === --- ChangeLog(revision 256076) +++ ChangeLog(working copy) @@ -1,3 +1,21 @@ +2018-01-03 Sebastian Perta + +* config/rx/rx.c (rx_get_pragma_address): New function +* config/rx/rx.c (rx_note_pragma_address): New function +*

RE: [PATCH] RX pragma address

2018-01-05 Thread Sebastian Perta
Sorry the spaces got removed from previous email. -Original Message- From: Sebastian Perta Sent: 05 January 2018 10:59 To: 'gcc-patches@gcc.gnu.org' Subject: [PATCH] RX pragma address Hello, The following patch adds a new pragma, "pragma address" for RX. The patch

RE: [PATCH] RX pragma address

2018-01-05 Thread Sebastian Perta
- From: Oleg Endo [mailto:oleg.e...@t-online.de] Sent: 05 January 2018 11:59 To: Sebastian Perta ; gcc-patches@gcc.gnu.org Subject: Re: [PATCH] RX pragma address Hi, On Fri, 2018-01-05 at 11:03 +, Sebastian Perta wrote: > > Hello, > > The following patch adds a new pragma, "pragma ad

RE: [PATCH] RX pragma address

2018-01-05 Thread Sebastian Perta
ot I will follow your suggestion and move it out from the M32C target and make it available for every target. Best Regards, Sebastian -Original Message- From: Oleg Endo [mailto:oleg.e...@t-online.de] Sent: 05 January 2018 12:50 To: Sebastian Perta ; gcc-patches@gcc.gnu.org Subject: Re: [

[PATCH] -mjsr option bug fix

2018-01-08 Thread Sebastian Perta
g (revision 256278) +++ ChangeLog (working copy) @@ -1,3 +1,10 @@ +2018-01-05 Sebastian Perta + + * config/rx/constraints.md: added new constraint CALL_OP_SYMBOL_REF + to allow or block "symbol_ref" depending on value of TARGET_JSR + * config/rx/rx.md: use CALL_OP_S

RE: [PATCH] RX pragma address

2018-01-09 Thread Sebastian Perta
Hello, The AP4 tool team have agreed with this change and are willing to update their tool. So I would like to drop this patch. Best Regards, Sebastian -Original Message- From: Sebastian Perta [mailto:sebastian.pe...@renesas.com] Sent: 05 January 2018 13:46 To: 'Oleg Endo&#

RE: [PATCH] RL78 pragma address

2018-01-09 Thread Sebastian Perta
Hello, So I would like to drop this patch. Oleg Endo has proposed a better solution: https://gcc.gnu.org/ml/gcc-patches/2018-01/msg00305.html Best Regards, Sebastian -Original Message- From: Sebastian Perta [mailto:sebastian.pe...@renesas.com] Sent: 15 December 2017 09:25 To: 

[PATCH] RX movsicc degrade fix

2018-01-09 Thread Sebastian Perta
2) +++ ChangeLog (working copy) @@ -1,3 +1,8 @@ +2018-01-09 Sebastian Perta + + *config/rx.md: updated "movsicc" expand to be matched by GCC + *testsuite/gcc.target/rx/movsicc.c: new test case + 2018-01-09 Richard Bie

RE: [PATCH] RL78 movdi improvement

2018-01-11 Thread Sebastian Perta
)) Also later on (in 290r.peephole2) we see that instruction 41 is eliminated as well: DCE: Deleting insn 41 deleting insn with uid = 41. Best Regards, Sebastian > -Original Message- > From: DJ Delorie [mailto:d...@redhat.com] > Sent: 09 January 2018 22:55 > To: Sebastian Per

[PATCH] RL78 UNUSED note setting bug fix in rl78_note_reg_set

2018-01-12 Thread Sebastian Perta
=== --- ChangeLog (revision 256590) +++ ChangeLog (working copy) @@ -1,3 +1,8 @@ +2018-01-12 Sebastian Perta + + * config/rl78/rl78.c (rl78_note_reg_set): fixed dead reg check + for non-QImode registers + 2018-01-12 Vladimir Makarov

RE: [PATCH] RL78 UNUSED note setting bug fix in rl78_note_reg_set

2018-01-12 Thread Sebastian Perta
suggestion. Best Regards, Sebastian Index: ChangeLog === --- ChangeLog(revision 256590) +++ ChangeLog(working copy) @@ -1,3 +1,8 @@ +2018-01-12 Sebastian Perta + +* config/rl78/rl78.c (rl78_note_reg_set): fixed dead reg check +for non

[PATCH, committed] Add myself to MAINTAINERS

2018-01-16 Thread Sebastian Perta
Hi, Just added myself to MAINTAINERS (write after approval) Best Regards, Sebastian Index: ChangeLog === --- ChangeLog(revision 256737) +++ ChangeLog(working copy) @@ -1,3 +1,7 @@ +2018-01-16 Sebastian Perta + +* MAINTAINERS

New code merge optimization?

2018-01-18 Thread Sebastian Perta
Hello, I am interested in implementing a new pass in gcc to merge identical sequences of code in GCC to be used mainly for RL78. The commercial RL78 compilers have such algorithms implemented and they make quite good use of it. Opportunities arise from the limited capabilities of RL78, for other

RE: New code merge optimization?

2018-01-18 Thread Sebastian Perta
; From: Martin Jambor [mailto:mjam...@suse.cz] > Sent: 18 January 2018 15:18 > To: Sebastian Perta ; gcc- > patc...@gcc.gnu.org > Cc: l...@gcc.gnu.org > Subject: Re: New code merge optimization? > > Hi, > > On Thu, Jan 18 2018, Sebastian Perta wrote: > > Hello, > &

RE: New code merge optimization?

2018-01-18 Thread Sebastian Perta
art asking questions. Best Regards, Sebastian > -Original Message- > From: Andrew Pinski [mailto:pins...@gmail.com] > Sent: 18 January 2018 16:19 > To: Sebastian Perta > Cc: Martin Jambor ; gcc-patches@gcc.gnu.org; > l...@gcc.gnu.org > Subject: Re: New code merge o

RE: [PATCH] RL78 UNUSED note setting bug fix in rl78_note_reg_set

2018-01-19 Thread Sebastian Perta
HI DJ, >>Do you have checkin privs yet? >> This is ok aside from.. ... + /* Do not mark the reg unused unless all QImode parts of it are dead. */ Can I checkin this patch? Thank you! Best Regards, Sebastian > -Original Message- > From: Sebastian Perta > Sent:

[PATCH] RL78 addsi3 improvement

2018-01-25 Thread Sebastian Perta
=--target_board=rl78-sim Please let me know if this is OK to check-in, Thank you! Best Regards, Sebastian Index: ChangeLog === --- ChangeLog (revision 257055) +++ ChangeLog (working copy) @@ -1,3 +1,9 @@ +2018-01-25 Sebastian Perta

RE: [PATCH] RL78 addsi3 improvement

2018-01-26 Thread Sebastian Perta
2018 19:38 > To: Sebastian Perta > Cc: gcc-patches@gcc.gnu.org > Subject: Re: [PATCH] RL78 addsi3 improvement > > > This is OK. > > I wonder if these types of optimizations should be added to the > assembler too? At least, if relaxation is enabled...

RE: [PATCH] RL78 new "vector" function attribute

2018-01-29 Thread Sebastian Perta
18-01-29 Sebastian Perta + + * config/rl78/rl78.c (add_vector_labels): New function. + * config/rl78/rl78.c (rl78_handle_vector_attribute): New function. + * config/rl78/rl78.c (rl78_start_function): Call add_vector_labels. + * config/rl78/rl78.c (rl78_handle_func_attr

RE: [PATCH] RL78 new "vector" function attribute

2018-02-06 Thread Sebastian Perta
id __attribute__ ((interrupt)) interrupt_handler (); + +void interrupt_handler () +{ +} + +/* { dg-final { scan-assembler "tableentry" } } */ > -Original Message- > From: DJ Delorie [mailto:d...@redhat.com] > Sent: 29 January 2018 21:11 > To: Sebastian Perta > Cc:

PING [PATCH] -mjsr option bug fix

2018-02-06 Thread Sebastian Perta
PING > -Original Message- > From: Sebastian Perta [mailto:sebastian.pe...@renesas.com] > Sent: 08 January 2018 10:57 > To: gcc-patches@gcc.gnu.org > Subject: [PATCH] -mjsr option bug fix > > Hi, > > The -mjsr option in RX should ensure the that BSR instructi

PING [PATCH] RX movsicc degrade fix

2018-02-06 Thread Sebastian Perta
PING > -Original Message- > From: Sebastian Perta [mailto:sebastian.pe...@renesas.com] > Sent: 09 January 2018 14:46 > To: 'gcc-patches@gcc.gnu.org' > Subject: [PATCH] RX movsicc degrade fix > > Hello, > > In recent versions of GCC the define_expa

RE: PING [PATCH] RX movsicc degrade fix

2018-02-12 Thread Sebastian Perta
-Original Message- > From: Jakub Jelinek [mailto:ja...@redhat.com] > Sent: 09 February 2018 18:24 > To: Sebastian Perta ; Nick Clifton > > Cc: gcc-patches > Subject: Re: PING [PATCH] RX movsicc degrade fix > > On Wed, Feb 07, 2018 at 02:10:21PM +

RE: PING [PATCH] RX movsicc degrade fix

2018-02-12 Thread Sebastian Perta
-02-09 Sebastian Perta - * config/rx.md: updated "movsicc" expand to be matched by GCC - * testsuite/gcc.target/rx/movsicc.c: new test case + * config/rx/rx.md (movsicc): Update expander to be matched by GCC. 2018-02-09 Peter Bergner @@ -143,10 +142,10 @@

RE: PING [PATCH] RX movsicc degrade fix

2018-02-12 Thread Sebastian Perta
I think this is OK, please confirm. Best Regards, Sebastian > -Original Message- > From: Jakub Jelinek [mailto:ja...@redhat.com] > Sent: 12 February 2018 13:30 > To: Sebastian Perta > Cc: Nick Clifton ; gcc-patches patc...@gcc.gnu.org> > Subject: Re: PING [PATCH] RX mov

RE: [PATCH] RL78 new "vector" function attribute

2018-02-12 Thread Sebastian Perta
@@ +2018-02-12 Sebastian Perta + + * config/rl78/rl78.c (add_vector_labels): New function. + * config/rl78/rl78.c (rl78_handle_vector_attribute): New function. + * config/rl78/rl78.c (rl78_start_function): Call add_vector_labels. + * config/rl78/rl78.c (rl78_handle_fu

[PATCH] RX TARGET_RTX_COSTS function

2018-02-13 Thread Sebastian Perta
y) @@ -1,3 +1,8 @@ +2018-02-13 Sebastian Perta + + * config/rx/rx.c (TARGET_RTX_COSTS): Define. + * config/rx/rx.c (rx_rtx_costs): New function. + 2018-02-13 Paolo Bonzini PR sanitizer/84340 Index: rx.c =

{PATCH] RL78 movdf define expand

2018-02-16 Thread Sebastian Perta
257733) +++ ChangeLog (working copy) @@ -1,3 +1,7 @@ +2018-02-16 Sebastian Perta + + * config/rl78/rl78.md (movdf): New define expand. + 2018-02-16 Richard Biener PR tree-optimization/84417 Index: rl78.md

[PATCH] RL78 one_cmplhi2 improvement

2018-02-20 Thread Sebastian Perta
? Or do I need to add the new pass as well for this to be considered? Thank you! Regression test is OK, tested with the following command: make -k check-gcc RUNTESTFLAGS=--target_board=rl78-sim Best Regards, Sebastian 2018-02-20 Sebastian Perta * config/rl78/rl78-expand.md (one_cmplhi

RE: [PATCH] RX TARGET_RTX_COSTS function

2018-02-22 Thread Sebastian Perta
stian > -Original Message- > From: Nick Clifton [mailto:ni...@redhat.com] > Sent: 22 February 2018 15:41 > To: Oleg Endo ; gcc-patches@gcc.gnu.org > Cc: Sebastian Perta ; 'DJ Delorie' > > Subject: Re: [PATCH] RX TARGET_RTX_COSTS function > > Hi Oleg,

RE: [PATCH] RL78 one_cmplhi2 improvement

2018-02-27 Thread Sebastian Perta
est Regards, Sebastian > -Original Message- > From: DJ Delorie [mailto:d...@redhat.com] > Sent: 20 February 2018 19:39 > To: Sebastian Perta > Cc: gcc-patches@gcc.gnu.org > Subject: Re: [PATCH] RL78 one_cmplhi2 improvement > > > Const type promotion is the ba

[PATCH] RX new builtin function

2018-10-24 Thread Sebastian Perta
=--target_board=rx-sim Please find below the changelog entries and patch. Best Regards, Sebastian --- ChangeLog 2018-10-23 Sebastian Perta * config/rx/rx.c (RX_BUILTIN_BSET): New enum. * config/rx/rx.c (rx_init_builtins): Added new builtin for BSET. * config/rx/rx.c

RE: PING [PATCH] RX new builtin function

2018-11-12 Thread Sebastian Perta
PING > -Original Message- > From: Sebastian Perta > Sent: 24 October 2018 18:19 > To: 'gcc-patches@gcc.gnu.org' > Cc: 'Nick Clifton' > Subject: [PATCH] RX new builtin function > > Hi, > > The following patch adds a new builtin

[PATCH] rl78 subdi3 improvement

2017-10-20 Thread Sebastian Perta
=== --- gcc/ChangeLog(revision 253893) +++ gcc/ChangeLog(working copy) @@ -1,3 +1,7 @@ +2017-10-13 Sebastian Perta + +* config/rl78/rl78.md: New define_expand "subdi3". + 2017-10-19 Eric Botcazou PR debug/82509 Index: gcc/config/rl

[PATCH] rl78 adddi3 improvement

2017-08-14 Thread Sebastian Perta
=== --- gcc/ChangeLog(revision 251091) +++ gcc/ChangeLog(working copy) @@ -1,3 +1,12 @@ +2017-08-14 Sebastian Perta + +changed long long addition for RL78 +* gcc/config/rl78/rl78.c (rl78_emit_libcall): new function. +* gcc/config/rl78/rl78-protos.h (rl78_emit_libcall): new function. +* gcc

[PING] [PATCH] rl78 adddi3 improvement

2017-09-26 Thread Sebastian Perta
Hi, I would like to ping the below patch posted on 14th of august. Thank you! Sebastian -Original Message- From: Sebastian Perta Sent: 14 August 2017 15:26 To: 'gcc-patches@gcc.gnu.org' Subject: [PATCH] rl78 adddi3 improvement The following patch improves both the spee