This avoids vectorizing and thus chaning loop trip count. Tested on x86_64, applied.
Richard. 2015-01-16 Richard Biener <rguent...@suse.de> PR tree-optimization/61743 * gcc.dg/tree-ssa/pr61743-1.c: Add -fno-tree-vectorize. * gcc.dg/tree-ssa/pr61743-2.c: Likewise. Index: gcc/testsuite/gcc.dg/tree-ssa/pr61743-1.c =================================================================== --- gcc/testsuite/gcc.dg/tree-ssa/pr61743-1.c (revision 219714) +++ gcc/testsuite/gcc.dg/tree-ssa/pr61743-1.c (working copy) @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O3 -funroll-loops -fdump-tree-cunroll-details" } */ +/* { dg-options "-O3 -funroll-loops -fno-tree-vectorize -fdump-tree-cunroll-details" } */ #define N 8 #define M 14 Index: gcc/testsuite/gcc.dg/tree-ssa/pr61743-2.c =================================================================== --- gcc/testsuite/gcc.dg/tree-ssa/pr61743-2.c (revision 219714) +++ gcc/testsuite/gcc.dg/tree-ssa/pr61743-2.c (working copy) @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O3 -funroll-loops -fdump-tree-cunroll-details" } */ +/* { dg-options "-O3 -funroll-loops -fno-tree-vectorize -fdump-tree-cunroll-details" } */ #define N 8 #define M 14