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 "-O1 -fdump-tree-optimized" } */
|
/* { dg-options "-O1 -fdump-tree-optimized" } */
|
|
|
int f(_Bool x)
|
int f(_Bool x)
|
{
|
{
|
int y;
|
int y;
|
if (x != 1)
|
if (x != 1)
|
y = 0;
|
y = 0;
|
else
|
else
|
y = 1;
|
y = 1;
|
return y;
|
return y;
|
}
|
}
|
|
|
/* There should be no != 1. Fold changes x != 1 to ! x. */
|
/* There should be no != 1. Fold changes x != 1 to ! x. */
|
/* { dg-final { scan-tree-dump-times "!= 1" 0 "optimized" } } */
|
/* { dg-final { scan-tree-dump-times "!= 1" 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.