Re: [PATCH], Add power9 support to GCC, patch #4

2015-11-09 Thread Segher Boessenkool
On Mon, Nov 09, 2015 at 12:27:34PM -0500, Michael Meissner wrote: > On Mon, Nov 09, 2015 at 10:29:10AM -0600, Segher Boessenkool wrote: > > On Sun, Nov 08, 2015 at 07:39:14PM -0500, Michael Meissner wrote: > > > +;; Pretend we have a memory form of extswsli until register allocation > > > is done

Re: [PATCH], Add power9 support to GCC, patch #4

2015-11-09 Thread David Edelsohn
On Sun, Nov 8, 2015 at 4:39 PM, Michael Meissner wrote: > This patch adds support for the EXTSWSLI instruction that is being added to > PowerPC ISA 3.0 (power9). > > I have built this patch (along with patches #2 and #3) with a bootstrap build > on a power8 little endian system. There were no reg

Re: [PATCH], Add power9 support to GCC, patch #4

2015-11-09 Thread Michael Meissner
On Mon, Nov 09, 2015 at 10:29:10AM -0600, Segher Boessenkool wrote: > On Sun, Nov 08, 2015 at 07:39:14PM -0500, Michael Meissner wrote: > > +;; Pretend we have a memory form of extswsli until register allocation is > > done > > +;; so that we use LWZ to load the value from memory, instead of LWA.

Re: [PATCH], Add power9 support to GCC, patch #4

2015-11-09 Thread Segher Boessenkool
On Sun, Nov 08, 2015 at 07:39:14PM -0500, Michael Meissner wrote: > +;; Pretend we have a memory form of extswsli until register allocation is > done > +;; so that we use LWZ to load the value from memory, instead of LWA. We generate sign_extend loads for many cases where zero_extend would be pre

Re: [PATCH], Add power9 support to GCC, patch #4

2015-11-08 Thread Michael Meissner
This patch adds support for the EXTSWSLI instruction that is being added to PowerPC ISA 3.0 (power9). I have built this patch (along with patches #2 and #3) with a bootstrap build on a power8 little endian system. There were no regressions in the test suite. Is this patch ok to install in the tr