OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [loop-17.c] - Blame information for rev 867

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-sccp-details" } */
3
 
4
/* To determine the number of iterations in this loop we need to fold
5
   p_4 + 4B > p_4 + 8B to false.  This transformation has caused
6
   troubles in the past due to overflow issues.  */
7
 
8
int foo (int *p)
9
{
10
  int i = 0, *x;
11
 
12
  for (x = p; x < p + 2; x++)
13
    i++;
14
 
15
  return i;
16
}
17
 
18
/* { dg-final { scan-tree-dump "set_nb_iterations_in_loop = 2" "sccp" } } */
19
/* { dg-final { cleanup-tree-dump "sccp" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.