Re: [PATCH] rs6000: Make some BIFs vectorized on P10

2021-08-24 Thread Kewen.Lin via Gcc-patches
on 2021/8/25 上午6:14, Segher Boessenkool wrote: > Hi! > > On Fri, Aug 13, 2021 at 10:34:46AM +0800, Kewen.Lin wrote: >> on 2021/8/12 下午11:10, Segher Boessenkool wrote: + && VECTOR_UNIT_ALTIVEC_OR_VSX_P (in_vmode)) +{ + machine_mode exp_mode = DImode; +

Re: [PATCH] rs6000: Make some BIFs vectorized on P10

2021-08-24 Thread Kewen.Lin via Gcc-patches
on 2021/8/25 上午5:56, Segher Boessenkool wrote: > On Fri, Aug 13, 2021 at 11:18:46AM +0800, Kewen.Lin wrote: >> on 2021/8/12 下午11:51, Segher Boessenkool wrote: >>> It is a bad idea to initialise things unnecessary: it hinders many >>> optimisations, but much more importantly, it silences warnings

Re: [PATCH] rs6000: Make some BIFs vectorized on P10

2021-08-24 Thread Segher Boessenkool
Hi! On Fri, Aug 13, 2021 at 10:34:46AM +0800, Kewen.Lin wrote: > on 2021/8/12 下午11:10, Segher Boessenkool wrote: > >> + && VECTOR_UNIT_ALTIVEC_OR_VSX_P (in_vmode)) > >> +{ > >> + machine_mode exp_mode = DImode; > >> + machine_mode exp_vmode = V2DImode; > >> + enum

Re: [PATCH] rs6000: Make some BIFs vectorized on P10

2021-08-24 Thread Segher Boessenkool
On Fri, Aug 13, 2021 at 11:18:46AM +0800, Kewen.Lin wrote: > on 2021/8/12 下午11:51, Segher Boessenkool wrote: > > It is a bad idea to initialise things unnecessary: it hinders many > > optimisations, but much more importantly, it silences warnings without > > fixing the problem. > > OK, I've made

Re: [PATCH] rs6000: Make some BIFs vectorized on P10

2021-08-24 Thread Bill Schmidt via Gcc-patches
Hi Kewen, Sorry this sat in my queue for so long.  It looks like you addressed all of our concerns, so LGTM -- recommend maintainers approve. Thanks! Bill On 8/12/21 9:34 PM, Kewen.Lin wrote: Hi Segher, Thanks for the review! on 2021/8/12 下午11:10, Segher Boessenkool wrote: Hi! On Wed,

Re: [PATCH] rs6000: Make some BIFs vectorized on P10

2021-08-12 Thread Kewen.Lin via Gcc-patches
on 2021/8/12 下午11:51, Segher Boessenkool wrote: > On Thu, Aug 12, 2021 at 10:10:10AM +0800, Kewen.Lin wrote: >>> + enum rs6000_builtins vname = RS6000_BUILTIN_COUNT; >>> >>> Using this as a flag value looks unnecessary. Is this just being done to >>> silence a warning? >> >> Good question!

Re: [PATCH] rs6000: Make some BIFs vectorized on P10

2021-08-12 Thread Kewen.Lin via Gcc-patches
Hi Segher, Thanks for the review! on 2021/8/12 下午11:10, Segher Boessenkool wrote: > Hi! > > On Wed, Aug 11, 2021 at 02:56:11PM +0800, Kewen.Lin wrote: >> * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function): Add >> support for some built-in functions vectorized on Power10.

Re: [PATCH] rs6000: Make some BIFs vectorized on P10

2021-08-12 Thread Segher Boessenkool
On Thu, Aug 12, 2021 at 10:10:10AM +0800, Kewen.Lin wrote: > > + enum rs6000_builtins vname = RS6000_BUILTIN_COUNT; > > > > Using this as a flag value looks unnecessary. Is this just being done to > > silence a warning? > > Good question! I didn't notice there is a warning or not, just

Re: [PATCH] rs6000: Make some BIFs vectorized on P10

2021-08-12 Thread Segher Boessenkool
Hi! On Wed, Aug 11, 2021 at 02:56:11PM +0800, Kewen.Lin wrote: > * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function): Add > support for some built-in functions vectorized on Power10. Say which, not "some" please? > + machine_mode in_vmode = TYPE_MODE (type_in); > +

Re: [PATCH] rs6000: Make some BIFs vectorized on P10

2021-08-12 Thread Bill Schmidt via Gcc-patches
On 8/11/21 9:10 PM, Kewen.Lin wrote: Hi Bill, Thanks for your prompt review! on 2021/8/12 上午12:34, Bill Schmidt wrote: Hi Kewen, FWIW, it's easier on reviewers if you include the patch inline instead of as an attachment. On 8/11/21 1:56 AM, Kewen.Lin wrote: Hi, This patch is to add the

Re: [PATCH] rs6000: Make some BIFs vectorized on P10

2021-08-11 Thread Kewen.Lin via Gcc-patches
Hi Bill, Thanks for your prompt review! on 2021/8/12 上午12:34, Bill Schmidt wrote: > Hi Kewen, > > FWIW, it's easier on reviewers if you include the patch inline instead of as > an attachment. > > On 8/11/21 1:56 AM, Kewen.Lin wrote: >> Hi, >> >> This patch is to add the support to make

Re: [PATCH] rs6000: Make some BIFs vectorized on P10

2021-08-11 Thread Bill Schmidt via Gcc-patches
Hi Kewen, FWIW, it's easier on reviewers if you include the patch inline instead of as an attachment. On 8/11/21 1:56 AM, Kewen.Lin wrote: Hi, This patch is to add the support to make vectorizer able to vectorize scalar version of some built-in functions with its corresponding vector

[PATCH] rs6000: Make some BIFs vectorized on P10

2021-08-11 Thread Kewen.Lin via Gcc-patches
Hi, This patch is to add the support to make vectorizer able to vectorize scalar version of some built-in functions with its corresponding vector version with Power10 support. Bootstrapped & regtested on powerpc64le-linux-gnu {P9,P10} and powerpc64-linux-gnu P8. Is it ok for trunk? BR, Kewen