Re: [PATCH, rs6000] Fold vector absolutes in GIMPLE

2017-05-31 Thread Ramana Radhakrishnan
On Wed, May 31, 2017 at 3:02 PM, Richard Biener wrote: > On Wed, May 31, 2017 at 3:56 PM, Will Schmidt > wrote: >> On Tue, 2017-05-30 at 09:00 +0200, Richard Biener wrote: >>> On Mon, May 29, 2017 at 2:21 PM, Segher Boessenkool >>> wrote: >>> > On Mon, May 29, 2017 at 01:35:22PM +0200, Richard

Re: [PATCH, rs6000] Fold vector absolutes in GIMPLE

2017-05-31 Thread Richard Biener
On Wed, May 31, 2017 at 3:56 PM, Will Schmidt wrote: > On Tue, 2017-05-30 at 09:00 +0200, Richard Biener wrote: >> On Mon, May 29, 2017 at 2:21 PM, Segher Boessenkool >> wrote: >> > On Mon, May 29, 2017 at 01:35:22PM +0200, Richard Biener wrote: >> >> >> What's the documented behavior for vec_abs

Re: [PATCH, rs6000] Fold vector absolutes in GIMPLE

2017-05-31 Thread Will Schmidt
On Tue, 2017-05-30 at 09:00 +0200, Richard Biener wrote: > On Mon, May 29, 2017 at 2:21 PM, Segher Boessenkool > wrote: > > On Mon, May 29, 2017 at 01:35:22PM +0200, Richard Biener wrote: > >> >> What's the documented behavior for vec_abs with respect to an > >> >argument > >> >> of value INT_MIN?

Re: [PATCH, rs6000] Fold vector absolutes in GIMPLE

2017-05-30 Thread Richard Biener
On Mon, May 29, 2017 at 2:21 PM, Segher Boessenkool wrote: > On Mon, May 29, 2017 at 01:35:22PM +0200, Richard Biener wrote: >> >> What's the documented behavior for vec_abs with respect to an >> >argument >> >> of value INT_MIN? >> > >> >The documentation says: >> > >> > "For integer vectors,

Re: [PATCH, rs6000] Fold vector absolutes in GIMPLE

2017-05-29 Thread Segher Boessenkool
On Mon, May 29, 2017 at 01:35:22PM +0200, Richard Biener wrote: > >> What's the documented behavior for vec_abs with respect to an > >argument > >> of value INT_MIN? > > > >The documentation says: > > > > "For integer vectors, the arithmetic is modular." > > This means that folding as ABS_EXPR

Re: [PATCH, rs6000] Fold vector absolutes in GIMPLE

2017-05-29 Thread Richard Biener
On May 29, 2017 12:24:44 PM GMT+02:00, Segher Boessenkool wrote: >On Mon, May 29, 2017 at 10:32:18AM +0200, Richard Biener wrote: >> On Fri, May 26, 2017 at 7:19 PM, Will Schmidt > wrote: >> > Add support for early expansion of vector absolute built-ins. >> > >> > Bootstraps currently running (p7

Re: [PATCH, rs6000] Fold vector absolutes in GIMPLE

2017-05-29 Thread Segher Boessenkool
On Mon, May 29, 2017 at 10:32:18AM +0200, Richard Biener wrote: > On Fri, May 26, 2017 at 7:19 PM, Will Schmidt > wrote: > > Add support for early expansion of vector absolute built-ins. > > > > Bootstraps currently running (p7,p8le,p8be). > > > > OK for trunk? > > What's the documented behavior

Re: [PATCH, rs6000] Fold vector absolutes in GIMPLE

2017-05-29 Thread Richard Biener
On Fri, May 26, 2017 at 7:19 PM, Will Schmidt wrote: > Hi, > > Add support for early expansion of vector absolute built-ins. > > Bootstraps currently running (p7,p8le,p8be). > > OK for trunk? What's the documented behavior for vec_abs with respect to an argument of value INT_MIN? Richard. > Tha

[PATCH, rs6000] Fold vector absolutes in GIMPLE

2017-05-26 Thread Will Schmidt
Hi, Add support for early expansion of vector absolute built-ins. Bootstraps currently running (p7,p8le,p8be). OK for trunk? Thanks, -Will [gcc] 2017-05-26 Will Schmidt * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for early expansion of vector absolute bu