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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr34808.c] - Rev 801

Go to most recent revision | Compare with Previous | Blame | View Log

/* PR 34808 */
/* { dg-do compile }
/* { dg-options "-fno-tree-dominator-opts" } */
 
extern int flags;
 
struct r { int code; int val;};
 
int
foo (struct r *home)
{
  int n = 0;
  int regno = -1;
 
  if (home->code == 0)
    regno = home->val;
 
  if (home->code == 1)
      bar ();
  else if (regno >= 0)
    n = (regno == 16
	 ? 16
	 : (regno - (unsigned long long) (flags != 0 ? 63 : 15)
	    ? regno - 128
	    : -1));
 
  baz ();
  return n;
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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