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.c-torture/] [compile/] [20020926-1.c] - Diff between revs 297 and 338

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

Rev 297 Rev 338
/* PR c/7160 */
/* PR c/7160 */
/* Verify that the register-to-stack converter properly handles
/* Verify that the register-to-stack converter properly handles
   branches without return value containing function calls.  */
   branches without return value containing function calls.  */
 
 
extern int gi;
extern int gi;
 
 
extern int foo1(int, int);
extern int foo1(int, int);
extern void foo2(int, int);
extern void foo2(int, int);
extern float foo3(int);
extern float foo3(int);
 
 
float bar(int i1, int i2)
float bar(int i1, int i2)
{
{
  int i3;
  int i3;
 
 
  if (i2) {
  if (i2) {
    i3 = foo1(i1, gi);
    i3 = foo1(i1, gi);
    foo2(i1, i3);
    foo2(i1, i3);
  }
  }
  else
  else
    return foo3(i2);
    return foo3(i2);
}
}
 
 

powered by: WebSVN 2.1.0

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