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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20020715-1.c] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
/* PR optimization/7153 */
/* PR optimization/7153 */
/* Verify that GCC doesn't promote a register when its
/* Verify that GCC doesn't promote a register when its
   lifetime is not limited to one basic block. */
   lifetime is not limited to one basic block. */
 
 
void f(char);
void f(char);
void g(void);
void g(void);
 
 
void scale(void)
void scale(void)
{
{
  int width;
  int width;
  char bytes;
  char bytes;
  char *src;
  char *src;
 
 
  if (width)
  if (width)
  {
  {
    bytes = *src;
    bytes = *src;
    g();
    g();
    width *= bytes;
    width *= bytes;
  }
  }
 
 
  f(bytes);
  f(bytes);
}
}
 
 

powered by: WebSVN 2.1.0

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