Re: [PATCH] RL78 - minor size optimization

2014-03-28 Thread DJ Delorie
Sweet. Yes please, in stage 1.

Re: [PATCH] RL78 - minor size optimization

2014-03-28 Thread Richard Hulme
On 28/03/14 00:20, DJ Delorie wrote: This is OK after 4.9 branches (i.e. stage1). I suspect we could add AX to the first alternative, although I don't know if it will get used. We could add HL to the second alternative to complete the replacement of the 'r' constraint. Yes, the missing AX in

Re: [PATCH] RL78 - minor size optimization

2014-03-27 Thread DJ Delorie
This is OK after 4.9 branches (i.e. stage1). I suspect we could add AX to the first alternative, although I don't know if it will get used. We could add HL to the second alternative to complete the replacement of the 'r' constraint.

[PATCH] RL78 - minor size optimization

2014-03-27 Thread Richard Hulme
Hi, This patch is a small optimization for the RL78 target that uses the 'clrb' instruction where possible when performing a zero-extend instead of 'mov'ing a literal #0. This saves a byte on each operation. Regards, Richard 2014-03-27 Richard Hulme * config/rl78/rl78-real.md (