Re: Question about DRAP register and reserving hard registers

2015-07-09 Thread H.J. Lu
On Thu, Jul 9, 2015 at 9:31 AM, Steve Ellcey wrote: > On Mon, 2015-06-29 at 11:10 +0100, Richard Henderson wrote: > >> > OK, I think I have this part of the code working on MIPS but >> > crtl->drap_reg is used in the epilogue as well as the prologue even if >> > it is not 'live' in between. If I

Re: Question about DRAP register and reserving hard registers

2015-07-09 Thread Steve Ellcey
On Mon, 2015-06-29 at 11:10 +0100, Richard Henderson wrote: > > OK, I think I have this part of the code working on MIPS but > > crtl->drap_reg is used in the epilogue as well as the prologue even if > > it is not 'live' in between. If I understand the code correctly the x86 > > prologue pushes t

Re: Question about DRAP register and reserving hard registers

2015-07-07 Thread Steve Ellcey
On Mon, 2015-06-29 at 11:10 +0100, Richard Henderson wrote: > > I also need the drap pointer in the MIPS epilogue but I would like to > > avoid having to get it from memory. Ideally I would like to restore it > > from the virtual register that the prologue code / get_drap_rtx code put > > it into

Re: Question about DRAP register and reserving hard registers

2015-06-29 Thread Richard Henderson
On 06/22/2015 11:14 PM, Steve Ellcey wrote: On Fri, 2015-06-19 at 09:09 -0400, Richard Henderson wrote: On 06/16/2015 07:05 PM, Steve Ellcey wrote: I have a question about the DRAP register (used for dynamic stack alignment) and about reserving/using hard registers in general. I am trying to

Re: Question about DRAP register and reserving hard registers

2015-06-22 Thread Steve Ellcey
On Fri, 2015-06-19 at 09:09 -0400, Richard Henderson wrote: > On 06/16/2015 07:05 PM, Steve Ellcey wrote: > > > > I have a question about the DRAP register (used for dynamic stack alignment) > > and about reserving/using hard registers in general. I am trying to > > understand > > where, if a dr

Re: Question about DRAP register and reserving hard registers

2015-06-19 Thread Steve Ellcey
On Fri, 2015-06-19 at 09:09 -0400, Richard Henderson wrote: > On 06/16/2015 07:05 PM, Steve Ellcey wrote: > > > > I have a question about the DRAP register (used for dynamic stack alignment) > > and about reserving/using hard registers in general. I am trying to > > understand > > where, if a dr

Re: Question about DRAP register and reserving hard registers

2015-06-19 Thread Richard Henderson
On 06/16/2015 07:05 PM, Steve Ellcey wrote: I have a question about the DRAP register (used for dynamic stack alignment) and about reserving/using hard registers in general. I am trying to understand where, if a drap register is allocated, GCC is told not to use it during general register allo

Question about DRAP register and reserving hard registers

2015-06-16 Thread Steve Ellcey
I have a question about the DRAP register (used for dynamic stack alignment) and about reserving/using hard registers in general. I am trying to understand where, if a drap register is allocated, GCC is told not to use it during general register allocation. There must be some code somewhere for