URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 384 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2 -fdump-tree-optimized" } */
|
/* { dg-options "-O2 -fdump-tree-optimized" } */
|
|
|
static int conststaticvariable;
|
static int conststaticvariable;
|
|
|
int f(void)
|
int f(void)
|
{
|
{
|
return conststaticvariable;
|
return conststaticvariable;
|
}
|
}
|
|
|
/* There should be no reference to conststaticvariable as we should have
|
/* There should be no reference to conststaticvariable as we should have
|
inlined the 0 as IPA reference should have marked the variable as a const
|
inlined the 0 as IPA reference should have marked the variable as a const
|
as it is not set in the IR. */
|
as it is not set in the IR. */
|
/* { dg-final { scan-tree-dump-times "conststaticvariable" 0 "optimized"} } */
|
/* { dg-final { scan-tree-dump-times "conststaticvariable" 0 "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.