Re: [RS6000] Fix -m32 -Os lossage

2015-02-12 Thread Alan Modra
On Thu, Feb 12, 2015 at 07:01:12PM -0500, David Edelsohn wrote: > On Thu, Feb 12, 2015 at 5:10 PM, Alan Modra wrote: > > On Thu, Feb 12, 2015 at 10:04:45AM -0500, David Edelsohn wrote: > >> On Thu, Feb 12, 2015 at 7:33 AM, Alan Modra wrote: > >> > * config/rs6000/rs6000.c (rs6000_emit_epi

Re: [RS6000] Fix -m32 -Os lossage

2015-02-12 Thread David Edelsohn
On Thu, Feb 12, 2015 at 5:10 PM, Alan Modra wrote: > On Thu, Feb 12, 2015 at 10:04:45AM -0500, David Edelsohn wrote: >> On Thu, Feb 12, 2015 at 7:33 AM, Alan Modra wrote: >> > * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry >> > or adddi3_carry when restoring fra

Re: [RS6000] Fix -m32 -Os lossage

2015-02-12 Thread Alan Modra
On Thu, Feb 12, 2015 at 10:04:45AM -0500, David Edelsohn wrote: > On Thu, Feb 12, 2015 at 7:33 AM, Alan Modra wrote: > > * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry > > or adddi3_carry when restoring frame_reg_rtx from r0 after restvr. > > Okay. Committed re

Re: [RS6000] Fix -m32 -Os lossage

2015-02-12 Thread David Edelsohn
On Thu, Feb 12, 2015 at 7:33 AM, Alan Modra wrote: > Fixes -Os breakage showing up as 3 testsuite fails like the following, > caused by add3 losing r0 as a valid source reg. > > insn does not satisfy its constraints: > (insn 98 97 99 2 (set (reg:SI 11 11) > (plus:SI (reg:SI 0 0) >

[RS6000] Fix -m32 -Os lossage

2015-02-12 Thread Alan Modra
Fixes -Os breakage showing up as 3 testsuite fails like the following, caused by add3 losing r0 as a valid source reg. insn does not satisfy its constraints: (insn 98 97 99 2 (set (reg:SI 11 11) (plus:SI (reg:SI 0 0) (const_int 80 [0x50]))) /src/gcc-current/gcc/testsuite/gcc.t