loop-38.c: Correct testcase.
authorJan Hubicka <jh@suse.cz>
Sat, 3 Nov 2012 00:46:52 +0000 (01:46 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 3 Nov 2012 00:46:52 +0000 (00:46 +0000)
* gcc.dg/tree-ssa/loop-38.c: Correct testcase.

* tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Add
missing sign to unsigned.

From-SVN: r193117

gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/loop-38.c
gcc/tree-ssa-loop-niter.c

index ada7ff5e78674d2b56e990e05ab72be8f7ac79c3..59a51f3d8877b7d6bc198a136f06a12470a15f19 100644 (file)
@@ -1,3 +1,8 @@
+2012-11-02  Jan Hubicka  <jh@suse.cz>
+
+       * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Add
+       missing sign to unsigned.
+
 2012-11-02  Andrew Pinski  <apinski@cavium.com>
 
        PR rtl-opt/54524
index 0dec13f86d4fc700ab3399b47fef75a97d15994e..d75f009d994ba87741707e1ea0371c04767613a2 100644 (file)
@@ -1,3 +1,7 @@
+2012-11-02  Jan Hubicka  <jh@suse.cz>
+
+       * gcc.dg/tree-ssa/loop-38.c: Correct testcase.
+
 2012-11-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
 
        * gcc.target/powerpc/pr48258-2.c: Simplfy the acceptance
index d5568d64624aaa8c24fd8b57793fa8f0039b2e29..7f2303124ad9c0e22698f3ce078153b56fc37b32 100644 (file)
@@ -13,6 +13,6 @@ t(int n)
        sum+=b[i];
   return sum;
 }
-/* { dg-final { scan-tree-dump "Found better loop bound 10" "cunrolli" } } */
-/* { dg-final { scan-tree-dump "Loop 1 iterates at most 10 times" "cunrolli" } } */
+/* { dg-final { scan-tree-dump "Found better loop bound 11" "cunrolli" } } */
+/* { dg-final { scan-tree-dump "Loop 1 iterates at most 11 times" "cunrolli" } } */
 /* { dg-final { cleanup-tree-dump "cunrolli" } } */
index b769f849d0e9da8696553fc22176e7b29bea7e8d..3fd34c145282980e855260c9961939be1047bd19 100644 (file)
@@ -3161,7 +3161,7 @@ discover_iteration_bound_by_body_walk (struct loop *loop)
     }
 
   gcc_assert (latch_index >= 0);
-  if (latch_index < VEC_length (double_int, bounds))
+  if ((unsigned)latch_index < VEC_length (double_int, bounds))
     {
       if (dump_file && (dump_flags & TDF_DETAILS))
        {