Re: [PATCH, rs6000] Support float from/to long conversion vectorization

2019-09-28 Thread Kewen.Lin
Hi Segher, on 2019/9/28 上午12:12, Segher Boessenkool wrote: > On Fri, Sep 27, 2019 at 04:52:30PM +0800, Kewen.Lin wrote: >>> (Maybe one of the gen* tools complains any_fix needs a mode? :QI will do >>> if so, or :P if you like that better). >> >> I didn't encounter any errors, it sounds it's

Re: [PATCH, rs6000] Support float from/to long conversion vectorization

2019-09-27 Thread Segher Boessenkool
On Fri, Sep 27, 2019 at 04:52:30PM +0800, Kewen.Lin wrote: > > (Maybe one of the gen* tools complains any_fix needs a mode? :QI will do > > if so, or :P if you like that better). > > I didn't encounter any errors, it sounds it's allowable now? Ah, that particular warning (from genrecog.c) only

Re: [PATCH, rs6000] Support float from/to long conversion vectorization

2019-09-27 Thread Kewen.Lin
Hi Segher, on 2019/9/27 下午3:27, Segher Boessenkool wrote: > Hi Kewen, > >> +;; Support signed/unsigned long long to float conversion vectorization. >> +(define_expand "vec_pack_float_v2di" >> + [(match_operand:V4SF 0 "vfloat_operand") >> + (any_float:V4SF (parallel [(match_operand:V2DI 1

Re: [PATCH, rs6000] Support float from/to long conversion vectorization

2019-09-27 Thread Segher Boessenkool
Hi Kewen, On Fri, Sep 27, 2019 at 10:33:01AM +0800, Kewen.Lin wrote: > This patch is to add the support for float from/to long conversion > vectorization. ISA 2.06 supports the vector version instructions > for conversion between float and long long (both signed and unsigned), > but vectorizer

[PATCH, rs6000] Support float from/to long conversion vectorization

2019-09-26 Thread Kewen.Lin
Hi, This patch is to add the support for float from/to long conversion vectorization. ISA 2.06 supports the vector version instructions for conversion between float and long long (both signed and unsigned), but vectorizer can't exploit them since the optab check fails. So this patch is mainly to