[Bug middle-end/28752] bootstrap comparision fails with -ftree-vectorize -maltivec on ppc and i386

2006-12-11 Thread irar at il dot ibm dot com


--- Comment #32 from irar at il dot ibm dot com  2006-12-11 12:46 ---
I am attaching the bad rs6000.s (generated with vectorization) and good
rs6000.s (generated with vectorization and -fno-move-loop-invariants) using
revision 110852 (from February 2006). I looked over these a bit, but I wouldn't
like to hunt down a bug that had since been solved, so I think I'll switch to
looking into more recent snapshots. 

Ira


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28752



[Bug middle-end/28752] bootstrap comparision fails with -ftree-vectorize -maltivec on ppc and i386

2006-12-11 Thread irar at il dot ibm dot com


--- Comment #33 from irar at il dot ibm dot com  2006-12-11 12:57 ---
Created an attachment (id=12779)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12779action=view)
Bad rs6000.s 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28752



[Bug middle-end/28752] bootstrap comparision fails with -ftree-vectorize -maltivec on ppc and i386

2006-12-11 Thread irar at il dot ibm dot com


--- Comment #34 from irar at il dot ibm dot com  2006-12-11 13:02 ---
Created an attachment (id=12781)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12781action=view)
Good rs6000.s


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28752



[Bug middle-end/28752] bootstrap comparision fails with -ftree-vectorize -maltivec on ppc and i386

2006-12-07 Thread irar at il dot ibm dot com


--- Comment #30 from irar at il dot ibm dot com  2006-12-07 12:14 ---
I am testing a patch for x86 boostrap failure. It was caused by a bug in
vectorization of strided accesses analysis, and, therefore, has nothing to do
with the bootstrap failures on ppc.

Ira


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28752



[Bug middle-end/28752] bootstrap comparision fails with -ftree-vectorize -maltivec on ppc and i386

2006-12-07 Thread irar at il dot ibm dot com


--- Comment #31 from irar at il dot ibm dot com  2006-12-07 13:30 ---
(In reply to comment #17)
 I applied the patch http://gcc.gnu.org/ml/gcc-patches/2006-07/msg01043.html (a
 fix for PR26197). The bootstrap with vectorization passes!
 However, the failure in comment #3 still occurs in the later revisions. So, I
 am going to hunt for a later patch that broke bootstrap with vectorization
 (applying the above patch).

I found this patch:
http://gcc.gnu.org/viewcvs?view=revrevision=110852

The offending loop here is rs6000.c:17088.

If I disable -fmove-loop-invariants on r110852, bootstrap with vectorization
enabled passes.

Ira


-- 

irar at il dot ibm dot com changed:

   What|Removed |Added

 CC||rakdver at atrey dot karlin
   ||dot mff dot cuni dot cz


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28752



[Bug middle-end/28752] bootstrap comparision fails with -ftree-vectorize -maltivec on ppc and i386

2006-12-04 Thread irar at il dot ibm dot com


--- Comment #29 from irar at il dot ibm dot com  2006-12-04 09:24 ---
I reproduced the wrong printings on x86. It seems to be a problem in strided
access vectorization after all - no stores are generated. I am looking into
this.

Thanks,
Ira


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28752



[Bug middle-end/28752] bootstrap comparision fails with -ftree-vectorize -maltivec on ppc and i386

2006-12-02 Thread volodyan at gmail dot com


--- Comment #28 from volodyan at gmail dot com  2006-12-02 17:46 ---
(In reply to comment #27)
 I committed the patch that enables vectorization of strided accesses


Confirmed the bug on gcc-4.3/(Pentium-M)X86. Configured  as 
../gcc/configure   --enable-bootstrap --enable-languages=c
and built as
make BOOT_CFLAGS=-g   -msse2 -ftree-vectorize -O2 

Bootstrap failed after wrong execution of the following loop from
cfgloopanal.c/dfs:

  printf(nvert= %d, nq in dfs=%d, post0=%d\n,g-n_vertices, nq, 
g-vertices[0].post);

  for (i = 0; i  g-n_vertices; i++)
{
  g-vertices[i].component = -1;
  g-vertices[i].post = -1;
}
 printf(post0=%d; i in dfs=%d\n, g-vertices[0].post, i);
[printf's added by me]

It appears that this loop, which is vectorized according to the vectorizer
dump, doesn't manage to initialize g-vertices[i].post = -1 - the second printf
outputs 0 instead of expected -1 leading to dfs falsely assuming that this
vertex is new and crashing later:

nvert= 10, nq in dfs=8, post0=0
post0=0; i in dfs=10
../../gcc/gcc/crtstuff.c: In function ‘__do_global_dtors_aux’:
../../gcc/gcc/crtstuff.c:265: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.
make[3]: *** [crtbegin.o] Error 1
make[3]: Leaving directory `/Develop/mainline/build/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/Develop/mainline/build'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/Develop/mainline/build'
make: *** [all] Error 2
lnx-toshiba:/Develop/mainline/build #


Vladimir 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28752



[Bug middle-end/28752] bootstrap comparision fails with -ftree-vectorize -maltivec on ppc and i386

2006-11-22 Thread irar at il dot ibm dot com


--- Comment #27 from irar at il dot ibm dot com  2006-11-22 11:15 ---
I committed the patch that enables vectorization of strided accesses
(http://gcc.gnu.org/ml/gcc-patches/2006-03/msg01679.html), and now bootstrap
with vectorization fails also on x86 with the same error as in comment #3.
Here, the offending loop is cfgloopanal.c:153.

Ira


-- 

irar at il dot ibm dot com changed:

   What|Removed |Added

  GCC build triplet|powerpc64-linux |powerpc64-linux and and
   ||i386-linux
   GCC host triplet|powerpc64-linux |powerpc64-linux and i386-
   ||linux
 GCC target triplet|powerpc64-linux |powerpc64-linux and and
   ||i386-linux
Summary|bootstrap comparision fails |bootstrap comparision fails
   |with -ftree-vectorize -|with -ftree-vectorize -
   |maltivec on ppc|maltivec on ppc and i386


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28752