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/] [tree-ssa/] [loop-11.c] - Diff between revs 298 and 338

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

Rev 298 Rev 338
/* A test for final value replacement and higher-order ivs,
/* A test for final value replacement and higher-order ivs,
   see PR 22442.  */
   see PR 22442.  */
 
 
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-optimized" } */
/* { dg-options "-O1 -fdump-tree-optimized" } */
 
 
void bar (unsigned);
void bar (unsigned);
 
 
void foo (void)
void foo (void)
{
{
  unsigned i, a;
  unsigned i, a;
 
 
  for (i = 0; i < 5; i++)
  for (i = 0; i < 5; i++)
    a = i * i;
    a = i * i;
 
 
  bar (a);
  bar (a);
}
}
 
 
/* Final value of a gets replaced.  */
/* Final value of a gets replaced.  */
 
 
/* { dg-final { scan-tree-dump-times "\\(16\\)" 1 "optimized" } } */
/* { dg-final { scan-tree-dump-times "\\(16\\)" 1 "optimized" } } */
 
 
/* And the empty loop is removed.  */
/* And the empty loop is removed.  */
 
 
/* { dg-final { scan-tree-dump-times "if " 0 "optimized" } } */
/* { dg-final { scan-tree-dump-times "if " 0 "optimized" } } */
 
 
/* { dg-final { cleanup-tree-dump "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
 
 
 
 

powered by: WebSVN 2.1.0

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