On Mon, Dec 01, 2014 at 10:47:40AM -0700, Jeff Law wrote: > > * config/i386/i386.md (set_got): Use "=b,?r" constraint for operand 0. > > (set_got_labelled): Ditto. > > (set_got_rex64): Ditto. > > (set_rip_rex64): Ditto. > > (set_got_offset_rex64): Ditto. > > > >Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}. > > > >Thoughts? > As HJ mentioned, it's not perfect, but it's certainly better than what we're > doing now. > > The only thing I don't like is that it's really disguising failings in > IRA/LRA.
As HJ mentioned, it should be done for 32-bit patterns only, at least for now, there is no class for the r15 register. Jakub