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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [loop-2.c] - Diff between revs 298 and 338

Only display areas with differences | Details | Blame | View Log

Rev 298 Rev 338
/* PR optimization/10171 */
/* PR optimization/10171 */
/* Bug: unroll_loop misoptimized the function so that we got
/* Bug: unroll_loop misoptimized the function so that we got
   0 iterations of the loop rather than the correct 1.  */
   0 iterations of the loop rather than the correct 1.  */
/* { dg-do run } */
/* { dg-do run } */
 
 
extern void abort (void);
extern void abort (void);
extern void exit (int);
extern void exit (int);
 
 
__inline__ int tag() { return 0; }
__inline__ int tag() { return 0; }
 
 
void f ();
void f ();
 
 
int main() {
int main() {
  int i;
  int i;
  for (i = 0; i < (tag() ? 2 : 1); i++)
  for (i = 0; i < (tag() ? 2 : 1); i++)
    f();
    f();
  abort ();
  abort ();
}
}
 
 
void f ()
void f ()
{
{
  exit (0);
  exit (0);
}
}
 
 

powered by: WebSVN 2.1.0

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