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-sink-stats" } */
|
/* { dg-options "-O2 -fdump-tree-sink-stats" } */
|
extern void foo(int a);
|
extern void foo(int a);
|
int
|
int
|
main (int argc)
|
main (int argc)
|
{
|
{
|
int a;
|
int a;
|
a = argc + 1;
|
a = argc + 1;
|
if (argc + 3)
|
if (argc + 3)
|
{
|
{
|
foo (a);
|
foo (a);
|
}
|
}
|
}
|
}
|
/* We should sink the a = argc + 1 calculation into the if branch */
|
/* We should sink the a = argc + 1 calculation into the if branch */
|
/* { dg-final { scan-tree-dump-times "Sunk statements: 1" 1 "sink" } } */
|
/* { dg-final { scan-tree-dump-times "Sunk statements: 1" 1 "sink" } } */
|
/* { dg-final { cleanup-tree-dump "sink" } } */
|
/* { dg-final { cleanup-tree-dump "sink" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.