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 -fno-tree-dominator-opts -fdump-tree-fre-stats" } */
|
/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre-stats" } */
|
int
|
int
|
foo (int *array)
|
foo (int *array)
|
{
|
{
|
if (array[1] != 0)
|
if (array[1] != 0)
|
return array[1];
|
return array[1];
|
return 0;
|
return 0;
|
}
|
}
|
/* We should eliminate one address calculation, and one load. */
|
/* We should eliminate one address calculation, and one load. */
|
/* { dg-final { scan-tree-dump-times "Eliminated: 2" 1 "fre"} } */
|
/* { dg-final { scan-tree-dump-times "Eliminated: 2" 1 "fre"} } */
|
/* { dg-final { cleanup-tree-dump "fre" } } */
|
/* { dg-final { cleanup-tree-dump "fre" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.