This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH], Improve moving SFmode to GPR on PowerPC, #7 of 8


On Tue, Sep 26, 2017 at 06:37:17PM -0400, Michael Meissner wrote:
> On Tue, Sep 26, 2017 at 04:56:54PM -0500, Segher Boessenkool wrote:
> > On Tue, Sep 26, 2017 at 10:48:29AM -0400, Michael Meissner wrote:
> > > 	* config/rs6000/vsx.md (peephole for optimizing move SF to GPR):
> > > 	Adjust code to eliminate needing to do the shift right 32-bits
> > > 	operation after XSCVDPSPN.
> > 
> > After staring at this way too long...  Looks correct.  What a monster :-)
> > 
> > Okay for trunk.  Thanks!
> 
> Thanks for taking the time to verify it.
> 
> Yeah, it is a monster to get right.  It would be nice to put this off to a
> separate MD pass, instead of abusing peephole2's.

Or maybe we can teach LRA to help us out here.  LRA dearly needs some
target hooks for the target to tell it what code sequences are good
for the target.


Segher


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]