URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 816 |
Rev 826 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O -fdump-tree-optimized" } */
|
/* { dg-options "-O -fdump-tree-optimized" } */
|
|
|
/* Testcase for PR31657. */
|
/* Testcase for PR31657. */
|
|
|
int foo (int x, int a, int b)
|
int foo (int x, int a, int b)
|
{
|
{
|
/* if ((x & a) || (x & b)) */
|
/* if ((x & a) || (x & b)) */
|
if (x & a)
|
if (x & a)
|
goto doit;
|
goto doit;
|
if (x & b)
|
if (x & b)
|
goto doit;
|
goto doit;
|
|
|
/* else */
|
/* else */
|
return 0;
|
return 0;
|
|
|
/* then - returing 1 causes phiopt to trigger */
|
/* then - returing 1 causes phiopt to trigger */
|
doit:
|
doit:
|
return 2;
|
return 2;
|
}
|
}
|
|
|
/* { dg-final { scan-tree-dump "\\|" "optimized" } } */
|
/* { dg-final { scan-tree-dump "\\|" "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.