Re: [patch] Fix gcc.dg/vect/pr49038.c (was Re: [patch] Fix PR tree-optimization/49038)

2011-07-18 Thread Rainer Orth
Ira Rosen writes: >> This test fails on spu-elf, and presumably all other targets that >> don't have mmap (or ) ... >> >> Can the test be restricted to those targets that actually support >> that OS feature? > > I copied the list of targets from gcc.dg/20050826-1.c. Sorry, but this is a bad idea

Re: [patch] Fix gcc.dg/vect/pr49038.c (was Re: [patch] Fix PR tree-optimization/49038)

2011-07-18 Thread Richard Guenther
On Sun, Jul 17, 2011 at 7:57 AM, Ira Rosen wrote: > On 15 July 2011 15:56, Ulrich Weigand wrote: >> Ira Rosen wrote: >> >>>       * gcc.dg/vect/pr49038.c: New test. >> >>> Index: testsuite/gcc.dg/vect/pr49038.c >>> === >>> --- testsu

[patch] Fix gcc.dg/vect/pr49038.c (was Re: [patch] Fix PR tree-optimization/49038)

2011-07-17 Thread Ira Rosen
On 15 July 2011 15:56, Ulrich Weigand wrote: > Ira Rosen wrote: > >>       * gcc.dg/vect/pr49038.c: New test. > >> Index: testsuite/gcc.dg/vect/pr49038.c >> === >> --- testsuite/gcc.dg/vect/pr49038.c   (revision 0) >> +++ testsuite/gc

Re: [patch] Fix PR tree-optimization/49038

2011-07-15 Thread Ulrich Weigand
Ira Rosen wrote: > * gcc.dg/vect/pr49038.c: New test. > Index: testsuite/gcc.dg/vect/pr49038.c > === > --- testsuite/gcc.dg/vect/pr49038.c (revision 0) > +++ testsuite/gcc.dg/vect/pr49038.c (revision 0) > @@ -0,0 +1,38 @@ >

Re: [patch] Fix PR tree-optimization/49038

2011-06-03 Thread Richard Guenther
On Thu, Jun 2, 2011 at 6:06 PM, Ira Rosen wrote: > On 26 May 2011 10:52, Ira Rosen wrote: >> Hi, >> >> The vectorizer supports strided loads with gaps, e.g., when only a[4i] >> and a[4i+2] are accessed, it generates a vector load a[4i:4i+3], i.e., >> creating an access to a[4i+3], which doesn't e

Re: [patch] Fix PR tree-optimization/49038

2011-06-02 Thread Ira Rosen
On 26 May 2011 10:52, Ira Rosen wrote: > Hi, > > The vectorizer supports strided loads with gaps, e.g., when only a[4i] > and a[4i+2] are accessed, it generates a vector load a[4i:4i+3], i.e., > creating an access to a[4i+3], which doesn't exist in the scalar code. > This access maybe invalid as d

Re: [patch] Fix PR tree-optimization/49038

2011-05-30 Thread H.J. Lu
On Thu, May 26, 2011 at 12:52 AM, Ira Rosen wrote: > Hi, > > The vectorizer supports strided loads with gaps, e.g., when only a[4i] > and a[4i+2] are accessed, it generates a vector load a[4i:4i+3], i.e., > creating an access to a[4i+3], which doesn't exist in the scalar code. > This access maybe

[patch] Fix PR tree-optimization/49038

2011-05-26 Thread Ira Rosen
Hi, The vectorizer supports strided loads with gaps, e.g., when only a[4i] and a[4i+2] are accessed, it generates a vector load a[4i:4i+3], i.e., creating an access to a[4i+3], which doesn't exist in the scalar code. This access maybe invalid as described in the PR. This patch creates an epilogue