[PATCH v2, rs6000] Add built-in function support for new Power9 vector absolute difference unsigned instructions

2016-06-08 Thread Kelvin Nilsen
This patch adds built-in function support for the ISA 3.0 vabsub, vabsduh, and vabsduw instructions. This second version of the patch differs from the first in the following ways: 1. Changed the base name of the macros defined in altivec.h from vec_adu to vec_absd. 2. Removed unnecessary em

Re: [PATCH v2, rs6000] Add built-in function support for new Power9 vector absolute difference unsigned instructions

2016-06-08 Thread Segher Boessenkool
On Wed, Jun 08, 2016 at 03:34:53PM -0600, Kelvin Nilsen wrote: > This patch adds built-in function support for the ISA 3.0 vabsub, > vabsduh, and vabsduw instructions. This second version of the patch > differs from the first in the following ways: > I have bootstrapped and tested on powerpc64l

Re: [PATCH] Fold x/x to 1, 0/x to 0 and 0%x to 0 consistently

2016-06-08 Thread Marc Glisse
On Wed, 8 Jun 2016, Jakub Jelinek wrote: On Wed, Jun 08, 2016 at 01:43:56PM -0400, Jason Merrill wrote: A few random ideas I was considering: * restrict it to GIMPLE, so we can't have a regression in the front-ends. * fold x/0 to 0 with TREE_OVERFLOW set, to tell the front-end that something is

Re: [PATCH] Fold x/x to 1, 0/x to 0 and 0%x to 0 consistently

2016-06-08 Thread Richard Biener
On Wed, 8 Jun 2016, Jason Merrill wrote: > On Wed, Jun 8, 2016 at 11:16 AM, Marc Glisse wrote: > > On Wed, 8 Jun 2016, Richard Biener wrote: > > > >> The following works around PR70992 but the issue came up repeatedly > >> that we are not very consistent in preserving the undefined behavior > >>

Re: [PATCH] Fold x/x to 1, 0/x to 0 and 0%x to 0 consistently

2016-06-08 Thread Richard Biener
On Thu, 9 Jun 2016, Marc Glisse wrote: > On Wed, 8 Jun 2016, Jakub Jelinek wrote: > > > On Wed, Jun 08, 2016 at 01:43:56PM -0400, Jason Merrill wrote: > > > > A few random ideas I was considering: > > > > * restrict it to GIMPLE, so we can't have a regression in the > > > > front-ends. > > > > *

<    1   2