Re: [PATCH] rs6000: Support more short/char to float conversion

2021-06-12 Thread Segher Boessenkool
On Fri, Jun 11, 2021 at 08:45:53PM +0800, Kewen.Lin wrote: > on 2021/6/10 下午6:58, Segher Boessenkool wrote: > > On Thu, Jun 10, 2021 at 05:32:23PM +0800, Kewen.Lin wrote: > >> +/* { dg-do compile { target lp64 } } */ > > > > One final thing: what requires lp64 here? Could you try without please?

Re: [PATCH] rs6000: Support more short/char to float conversion

2021-06-11 Thread Kewen.Lin via Gcc-patches
Hi Segher, on 2021/6/10 下午6:58, Segher Boessenkool wrote: > Hi! > > On Thu, Jun 10, 2021 at 05:32:23PM +0800, Kewen.Lin wrote: >> +/* { dg-do compile { target lp64 } } */ > > One final thing: what requires lp64 here? Could you try without please? > The lp64 is required for lxsi[bh]zx and mvex

Re: [PATCH] rs6000: Support more short/char to float conversion

2021-06-10 Thread Segher Boessenkool
Hi! On Thu, Jun 10, 2021 at 05:32:23PM +0800, Kewen.Lin wrote: > +/* { dg-do compile { target lp64 } } */ One final thing: what requires lp64 here? Could you try without please? Okay for trunk with that considered. Thanks! Segher

Re: [PATCH] rs6000: Support more short/char to float conversion

2021-06-10 Thread Kewen.Lin via Gcc-patches
Hi Segher, Thanks for the review! on 2021/6/10 上午7:23, Segher Boessenkool wrote: > Hi! > > On Fri, May 07, 2021 at 10:30:38AM +0800, Kewen.Lin wrote: >> For some cases that when we load unsigned char/short values from >> the appropriate unsigned char/short memories and convert them to >> double/

Re: [PATCH] rs6000: Support more short/char to float conversion

2021-06-09 Thread Segher Boessenkool
Hi! On Fri, May 07, 2021 at 10:30:38AM +0800, Kewen.Lin wrote: > For some cases that when we load unsigned char/short values from > the appropriate unsigned char/short memories and convert them to > double/single precision floating point value, there would be > implicit conversions to int first.

PING^2 [PATCH] rs6000: Support more short/char to float conversion

2021-06-08 Thread Kewen.Lin via Gcc-patches
Hi, Gentle ping this: https://gcc.gnu.org/pipermail/gcc-patches/2021-May/569792.html BR, Kewen on 2021/5/26 上午11:02, Kewen.Lin via Gcc-patches wrote: > Hi, > > Gentle ping this: > > https://gcc.gnu.org/pipermail/gcc-patches/2021-May/569792.html > > > BR, > Kewen > > on 2021/5/7 上午10:30

PING^1 [PATCH] rs6000: Support more short/char to float conversion

2021-05-25 Thread Kewen.Lin via Gcc-patches
Hi, Gentle ping this: https://gcc.gnu.org/pipermail/gcc-patches/2021-May/569792.html BR, Kewen on 2021/5/7 上午10:30, Kewen.Lin via Gcc-patches wrote: > Hi, > > For some cases that when we load unsigned char/short values from > the appropriate unsigned char/short memories and convert them to

[PATCH] rs6000: Support more short/char to float conversion

2021-05-06 Thread Kewen.Lin via Gcc-patches
Hi, For some cases that when we load unsigned char/short values from the appropriate unsigned char/short memories and convert them to double/single precision floating point value, there would be implicit conversions to int first. It makes GCC not leverage the P9 instructions lxsibzx/lxsihzx. Thi