URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2 -fdump-tree-optimized" } */
|
/* { dg-options "-O2 -fdump-tree-optimized" } */
|
|
|
|
|
extern int board[];
|
extern int board[];
|
|
|
void
|
void
|
findbestextension (int blah, int blah2)
|
findbestextension (int blah, int blah2)
|
{
|
{
|
int defval;
|
int defval;
|
defval = def_val (board[blah2]);
|
defval = def_val (board[blah2]);
|
if (blah)
|
if (blah)
|
defval = 0;
|
defval = 0;
|
foo (defval);
|
foo (defval);
|
}
|
}
|
|
|
/* The argument to "foo" should be a variable, not a constant. */
|
/* The argument to "foo" should be a variable, not a constant. */
|
/* { dg-final { scan-tree-dump-times "foo .defval" 1 "optimized"} } */
|
/* { dg-final { scan-tree-dump-times "foo .defval" 1 "optimized"} } */
|
/* { dg-final { cleanup-tree-dump "optimized" } } */
|
/* { dg-final { cleanup-tree-dump "optimized" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.