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/] [20020109-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
/* This testcase ICEd when 2 different successors of a basic block
/* This testcase ICEd when 2 different successors of a basic block
   were successfully threaded and try_forward_edges was not expecting
   were successfully threaded and try_forward_edges was not expecting
   that.  */
   that.  */
 
 
typedef struct A
typedef struct A
{
{
  struct A *s, *t;
  struct A *s, *t;
  unsigned int u;
  unsigned int u;
} A;
} A;
 
 
void bar (A *);
void bar (A *);
 
 
void
void
foo (A *x, A *y, A *z)
foo (A *x, A *y, A *z)
{
{
  while (y
  while (y
         && (((y && y->t && y->t->u) ? y : z)->t
         && (((y && y->t && y->t->u) ? y : z)->t
             == ((x && x->t && x->t->u) ? x : z)->t))
             == ((x && x->t && x->t->u) ? x : z)->t))
    y = y->s;
    y = y->s;
 
 
  if (y)
  if (y)
    bar (y);
    bar (y);
}
}
 
 

powered by: WebSVN 2.1.0

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