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 "-O1 -fdump-tree-optimized" } */
|
/* { dg-options "-O1 -fdump-tree-optimized" } */
|
|
|
int foo (int a)
|
int foo (int a)
|
{
|
{
|
void *p;
|
void *p;
|
if (a!=0)
|
if (a!=0)
|
p = &&L0;
|
p = &&L0;
|
else
|
else
|
p = &&L1;
|
p = &&L1;
|
goto *p;
|
goto *p;
|
L0:
|
L0:
|
return 1;
|
return 1;
|
L1:
|
L1:
|
return 0;
|
return 0;
|
}
|
}
|
|
|
/* Everything should have been cleaned up leaving a simple
|
/* Everything should have been cleaned up leaving a simple
|
return statement. */
|
return statement. */
|
/* { dg-final { scan-tree-dump-times "= a_..D. != 0" 1 "optimized" } } */
|
/* { dg-final { scan-tree-dump-times "= a_..D. != 0" 1 "optimized" } } */
|
|
|
/* There should not be any abnormal edges as DOM removed the
|
/* There should not be any abnormal edges as DOM removed the
|
computed gotos. */
|
computed gotos. */
|
|
|
/* { dg-final { scan-tree-dump-times "ab" 0 "optimized" } } */
|
/* { dg-final { scan-tree-dump-times "ab" 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.