URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 297 |
Rev 384 |
/* PR 34808 */
|
/* PR 34808 */
|
/* { dg-do compile }
|
/* { dg-do compile }
|
/* { dg-options "-fno-tree-dominator-opts" } */
|
/* { dg-options "-fno-tree-dominator-opts" } */
|
|
|
extern int flags;
|
extern int flags;
|
|
|
struct r { int code; int val;};
|
struct r { int code; int val;};
|
|
|
int
|
int
|
foo (struct r *home)
|
foo (struct r *home)
|
{
|
{
|
int n = 0;
|
int n = 0;
|
int regno = -1;
|
int regno = -1;
|
|
|
if (home->code == 0)
|
if (home->code == 0)
|
regno = home->val;
|
regno = home->val;
|
|
|
if (home->code == 1)
|
if (home->code == 1)
|
bar ();
|
bar ();
|
else if (regno >= 0)
|
else if (regno >= 0)
|
n = (regno == 16
|
n = (regno == 16
|
? 16
|
? 16
|
: (regno - (unsigned long long) (flags != 0 ? 63 : 15)
|
: (regno - (unsigned long long) (flags != 0 ? 63 : 15)
|
? regno - 128
|
? regno - 128
|
: -1));
|
: -1));
|
|
|
baz ();
|
baz ();
|
return n;
|
return n;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.