Re: [PATCH], V7, #2 of 7, Use PLI to load up 32-bit SImode constants

2019-12-03 Thread Segher Boessenkool
On Tue, Dec 03, 2019 at 12:57:24PM -0500, Michael Meissner wrote: > No, the change for num_insns_constant_gpr could not go in until the support > for > PLI went in (patch V6 #1). Well, I lost track. So your version 7 to 9 patches do *not* replace the v6 patches? Or does "V" mean something else?

Re: [PATCH], V7, #2 of 7, Use PLI to load up 32-bit SImode constants

2019-12-03 Thread Michael Meissner
On Mon, Nov 25, 2019 at 06:49:49PM -0600, Segher Boessenkool wrote: > On Mon, Nov 25, 2019 at 05:17:08PM -0500, Michael Meissner wrote: > > On Fri, Nov 22, 2019 at 06:20:52PM -0600, Segher Boessenkool wrote: > > > > (define_split > > > >[(set (match_operand:SI 0 "gpc_reg_operand") > > > >

Re: [PATCH], V7, #2 of 7, Use PLI to load up 32-bit SImode constants

2019-11-25 Thread Segher Boessenkool
On Mon, Nov 25, 2019 at 05:17:08PM -0500, Michael Meissner wrote: > On Fri, Nov 22, 2019 at 06:20:52PM -0600, Segher Boessenkool wrote: > > > (define_split > > >[(set (match_operand:SI 0 "gpc_reg_operand") > > > (match_operand:SI 1 "const_int_operand"))] > > >"(unsigned HOST_WIDE_INT) (I

Re: [PATCH], V7, #2 of 7, Use PLI to load up 32-bit SImode constants

2019-11-25 Thread Michael Meissner
On Fri, Nov 22, 2019 at 06:20:52PM -0600, Segher Boessenkool wrote: > On Thu, Nov 14, 2019 at 05:42:43PM -0500, Michael Meissner wrote: > > -;; Split a load of a large constant into the appropriate two-insn > > -;; sequence. > > +;; Split a load of a large constant into the appropriate two-insn >

Re: [PATCH], V7, #2 of 7, Use PLI to load up 32-bit SImode constants

2019-11-22 Thread Segher Boessenkool
On Thu, Nov 14, 2019 at 05:42:43PM -0500, Michael Meissner wrote: > -;; Split a load of a large constant into the appropriate two-insn > -;; sequence. > +;; Split a load of a large constant into the appropriate two-insn sequence. > On > +;; systems that support PADDI (PLI), we can use PLI to load

[PATCH], V7, #2 of 7, Use PLI to load up 32-bit SImode constants

2019-11-14 Thread Michael Meissner
This patch generates the PLI (PADDI) instruction to load up 32-bit SImode constants on the future system. It adds an alternative to movsi, and prevents the movsi load immediate from being split. I have built compilers with this patch which bootstrapped fine, and there were no regressions in the t