------- Comment #34 from dominiq at lps dot ens dot fr 2009-12-22 16:56 ------- The patch in comment #32 (without the one in comment #31) does fix the pr:
[karma] f90/bug% gfc -O3 -ftree-vectorizer-verbose=2 where_2.f90 where_2.f90:11: note: LOOP VECTORIZED. where_2.f90:11: note: not vectorized: relevant stmt not supported: cond.23_79 = D.1255_78 > 6; where_2.f90:11: note: not vectorized: relevant stmt not supported: cond.15_57 = D.1238_56 == 0; where_2.f90:11: note: not vectorized: relevant stmt not supported: cond.9_43 = D.1227_42 < 0; where_2.f90:5: note: LOOP VECTORIZED. where_2.f90:2: note: vectorized 2 loops in function. [karma] f90/bug% a.out 100 100 100 210 210 210 310 337 310 310 Abort [karma] f90/bug% gfc -m64 -O3 -ftree-vectorizer-verbose=2 where_2.f90 where_2.f90:11: note: LOOP VECTORIZED. where_2.f90:11: note: not vectorized: relevant stmt not supported: cond.23_79 = D.1270_78 > 6; where_2.f90:11: note: not vectorized: relevant stmt not supported: cond.15_57 = D.1253_56 == 0; where_2.f90:11: note: not vectorized: relevant stmt not supported: cond.9_43 = D.1242_42 < 0; where_2.f90:5: note: LOOP VECTORIZED. where_2.f90:2: note: vectorized 2 loops in function. [karma] f90/bug% a.out 100 100 100 210 210 210 310 337 310 337 Abort I'll attach the result of '-O3 -ftree-vectorizer-verbose=9' for gcc/testsuite/gfortran.fortran-torture/execute/where_2.f90. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41082