Re: [PATCH] rs6000: Add basic infrastructure for PC-relative addressing

2019-05-23 Thread Bill Schmidt
On 5/23/19 4:27 AM, Segher Boessenkool wrote: > Hi! > > On Wed, May 22, 2019 at 03:29:17PM -0500, Bill Schmidt wrote: >> + /* -mpcrel requires the prefixed load/store support on FUTURE systems. */ >> + if (!TARGET_FUTURE && TARGET_PCREL) >> +{ >> + if ((rs6000_isa_flags_explicit &

Re: [PATCH] rs6000: Add basic infrastructure for PC-relative addressing

2019-05-23 Thread Segher Boessenkool
Hi! On Wed, May 22, 2019 at 03:29:17PM -0500, Bill Schmidt wrote: > + /* -mpcrel requires the prefixed load/store support on FUTURE systems. */ > + if (!TARGET_FUTURE && TARGET_PCREL) > +{ > + if ((rs6000_isa_flags_explicit & OPTION_MASK_PCREL) != 0) > + error ("%qs requires %qs",

Re: [PATCH] rs6000: Add basic infrastructure for PC-relative addressing

2019-05-23 Thread Bill Schmidt
On 5/22/19 3:29 PM, Bill Schmidt wrote: > Hi, > > This patch adds basic infrastructure support to enable PC-relative addressing. > It adds the -mpcrel / -mno-pcrel option (defaulted on for -mcpu=future, > otherwise > off), and provides a couple of interfaces to determine whether PC-relative >

[PATCH] rs6000: Add basic infrastructure for PC-relative addressing

2019-05-22 Thread Bill Schmidt
Hi, This patch adds basic infrastructure support to enable PC-relative addressing. It adds the -mpcrel / -mno-pcrel option (defaulted on for -mcpu=future, otherwise off), and provides a couple of interfaces to determine whether PC-relative addressing should be used when generating a single