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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20020103-1.c] - Diff between revs 149 and 154

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

Rev 149 Rev 154
/* This testcase failed on Alpha at -O2 when simplifying conditional
/* This testcase failed on Alpha at -O2 when simplifying conditional
   expressions.  */
   expressions.  */
 
 
int foo (void);
int foo (void);
 
 
struct A
struct A
{
{
  int a, b, c, d;
  int a, b, c, d;
};
};
 
 
void bar (struct A *x)
void bar (struct A *x)
{
{
  int e, f;
  int e, f;
 
 
  e = foo ();
  e = foo ();
  e = e / x->b;
  e = e / x->b;
  if (e < 1)
  if (e < 1)
    e = 1;
    e = 1;
  f = (x->a + x->c) / e;
  f = (x->a + x->c) / e;
  if (f < x->d)
  if (f < x->d)
    x->d -= (1 << 16) / 8;
    x->d -= (1 << 16) / 8;
}
}
 
 

powered by: WebSVN 2.1.0

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