Re: [PATCH] Vectorization for store with negative step

2013-12-31 Thread Tejas Belagod
t: Re: Vectorization for store with negative step On Wed, Dec 18, 2013 at 12:34 PM, Bingfeng Mei wrote: Thanks, Richard. I will file a bug report and prepare a complete patch. For perm_mask_for_reverse function, should I move it before vectorizable_store or add a declaration. Move it. Richard. Bin

Re: [PING] RE: [PATCH] Vectorization for store with negative step

2013-12-20 Thread H.J. Lu
Jakub Jelinek > Cc: Richard Biener; gcc-patches@gcc.gnu.org > Subject: RE: [PATCH] Vectorization for store with negative step > > Hi, Jakub, > Sorry for all the formatting issues. Haven't submit a patch for a while :-). > Please find the updated patch. > It caused: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59569 -- H.J.

Re: [PING] RE: [PATCH] Vectorization for store with negative step

2013-12-20 Thread Richard Biener
013 16:25 > To: Jakub Jelinek > Cc: Richard Biener; gcc-patches@gcc.gnu.org > Subject: RE: [PATCH] Vectorization for store with negative step > > Hi, Jakub, > Sorry for all the formatting issues. Haven't submit a patch for a while :-). > Please find the updated patch. &

[PING] RE: [PATCH] Vectorization for store with negative step

2013-12-20 Thread Bingfeng Mei
iener; gcc-patches@gcc.gnu.org Subject: Re: [PATCH] Vectorization for store with negative step On Wed, Dec 18, 2013 at 01:31:05PM +, Bingfeng Mei wrote: Index: gcc/ChangeLog === --- gcc/ChangeLog (revision 206016) +++ gcc/Chan

RE: [PATCH] Vectorization for store with negative step

2013-12-18 Thread Bingfeng Mei
tches@gcc.gnu.org Subject: Re: [PATCH] Vectorization for store with negative step On Wed, Dec 18, 2013 at 01:31:05PM +, Bingfeng Mei wrote: Index: gcc/ChangeLog === --- gcc/ChangeLog (revision 206016) +++ gcc/ChangeLog (working

Re: [PATCH] Vectorization for store with negative step

2013-12-18 Thread Jakub Jelinek
On Wed, Dec 18, 2013 at 01:31:05PM +, Bingfeng Mei wrote: Index: gcc/ChangeLog === --- gcc/ChangeLog (revision 206016) +++ gcc/ChangeLog (working copy) @@ -1,3 +1,9 @@ +2013-12-18 Bingfeng Mei + + PR tree-optim

[PATCH] Vectorization for store with negative step

2013-12-18 Thread Bingfeng Mei
Subject: Re: Vectorization for store with negative step On Wed, Dec 18, 2013 at 12:34 PM, Bingfeng Mei wrote: > Thanks, Richard. I will file a bug report and prepare a complete patch. For > perm_mask_for_reverse function, should I move it before vectorizable_store or > add a declaration.

Re: Vectorization for store with negative step

2013-12-18 Thread Richard Biener
--Original Message- > From: Richard Biener [mailto:richard.guent...@gmail.com] > Sent: 18 December 2013 11:26 > To: Bingfeng Mei > Cc: gcc-patches@gcc.gnu.org > Subject: Re: Vectorization for store with negative step > > On Mon, Dec 16, 2013 at 5:54 PM, Bingfeng Mei wrote: >

RE: Vectorization for store with negative step

2013-12-18 Thread Bingfeng Mei
:26 To: Bingfeng Mei Cc: gcc-patches@gcc.gnu.org Subject: Re: Vectorization for store with negative step On Mon, Dec 16, 2013 at 5:54 PM, Bingfeng Mei wrote: > Hi, > I was looking at some loops that can be vectorized by LLVM, but not GCC. One > type of loop is with store of negative step.

Re: Vectorization for store with negative step

2013-12-18 Thread Richard Biener
On Mon, Dec 16, 2013 at 5:54 PM, Bingfeng Mei wrote: > Hi, > I was looking at some loops that can be vectorized by LLVM, but not GCC. One > type of loop is with store of negative step. > > void test1(short * __restrict__ x, short * __restrict__ y, short * > __restrict__ z) > { > int i; >

Vectorization for store with negative step

2013-12-16 Thread Bingfeng Mei
Hi, I was looking at some loops that can be vectorized by LLVM, but not GCC. One type of loop is with store of negative step. void test1(short * __restrict__ x, short * __restrict__ y, short * __restrict__ z) { int i; for (i=127; i>=0; i--) { x[i] = y[127-i] + z[127-i]; } }