Re: [testsuite] Fix PR94019 to allow one vector char when !vect_hw_misalign

2020-03-05 Thread Richard Sandiford
"Kewen.Lin" writes: > on 2020/3/5 上午3:09, Richard Sandiford wrote: >> "Kewen.Lin" writes: >>> Hi, >>> >>> >>> --- a/gcc/testsuite/gcc.dg/vect/vect-over-widen-17.c >>> +++ b/gcc/testsuite/gcc.dg/vect/vect-over-widen-17.c >>> @@ -41,6 +41,10 @@ main (void) >>> } >>> >>> /* { dg-final { scan-tree-

Re: [testsuite] Fix PR94019 to allow one vector char when !vect_hw_misalign

2020-03-04 Thread Kewen.Lin
Hi Richard, on 2020/3/5 上午3:09, Richard Sandiford wrote: > "Kewen.Lin" writes: >> Hi, >> >> >> --- a/gcc/testsuite/gcc.dg/vect/vect-over-widen-17.c >> +++ b/gcc/testsuite/gcc.dg/vect/vect-over-widen-17.c >> @@ -41,6 +41,10 @@ main (void) >> } >> >> /* { dg-final { scan-tree-dump-not {vect_recog

Re: [testsuite] Fix PR94019 to allow one vector char when !vect_hw_misalign

2020-03-04 Thread Kewen.Lin
Hi Segher, on 2020/3/5 上午2:44, Segher Boessenkool wrote: > Hi! > > On Wed, Mar 04, 2020 at 03:13:51PM +0800, Kewen.Lin wrote: >> As PR94019 shows, without misaligned vector access support but with >> realign load, the vectorized loop will end up with realign scheme. >> It generates mask (control

Re: [testsuite] Fix PR94019 to allow one vector char when !vect_hw_misalign

2020-03-04 Thread Richard Sandiford
"Kewen.Lin" writes: > Hi, > > As PR94019 shows, without misaligned vector access support but with > realign load, the vectorized loop will end up with realign scheme. > It generates mask (control vector) with return type vector signed > char which breaks the not check. > > The fix is to differenti

Re: [testsuite] Fix PR94019 to allow one vector char when !vect_hw_misalign

2020-03-04 Thread Segher Boessenkool
Hi! On Wed, Mar 04, 2020 at 03:13:51PM +0800, Kewen.Lin wrote: > As PR94019 shows, without misaligned vector access support but with > realign load, the vectorized loop will end up with realign scheme. > It generates mask (control vector) with return type vector signed > char which breaks the not

[testsuite] Fix PR94019 to allow one vector char when !vect_hw_misalign

2020-03-03 Thread Kewen.Lin
Hi, As PR94019 shows, without misaligned vector access support but with realign load, the vectorized loop will end up with realign scheme. It generates mask (control vector) with return type vector signed char which breaks the not check. The fix is to differentiate powerpc vect_hw_misalign and po