RE: [PATCH PR83789] Fix for Altivec builtin failure

2018-02-02 Thread Kaushik Phatak
Hi, Thanks for your quick reply. >> I think you should use altivec_lvx_v4si_2op_si instead? I will look into this. I had used v4si_internal as this was generated in older versions (> And the same needs to be done for v8hi, v16qi, v4sf, maybe more? I did observe some other testcase failures for 32-

Re: [PATCH PR83789] Fix for Altivec builtin failure

2018-02-01 Thread Segher Boessenkool
Hi! On Thu, Feb 01, 2018 at 12:26:41PM +, Kaushik Phatak wrote: > --- gcc/config/rs6000/rs6000.c(revision 256400) > +++ gcc/config/rs6000/rs6000.c(working copy) > @@ -15799,8 +15799,10 @@ > exp, target, false); > case ALTIVEC_BUILTIN_L

[PATCH PR83789] Fix for Altivec builtin failure

2018-02-01 Thread Kaushik Phatak
Hi, Please find below a patch to fix PR83789. The altivec builtin '__builtin_altivec_lvx' fails for the 32-bit powerpc-linux target. This is observed in gcc-7 onwards and does not affect powerpc64-linux target. This is regression tested for powerpc-linux. Please let me know if this patch is OK.