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-vrp1" } */
|
/* { dg-options "-O2 -fdump-tree-vrp1" } */
|
|
|
int
|
int
|
foo(int a)
|
foo(int a)
|
{
|
{
|
int z = a | 1;
|
int z = a | 1;
|
return z != 0;
|
return z != 0;
|
}
|
}
|
|
|
/* VRP should optimize this to a trivial "return 1". */
|
/* VRP should optimize this to a trivial "return 1". */
|
/* { dg-final { scan-tree-dump-times "return 1" 1 "vrp1" } } * /
|
/* { dg-final { scan-tree-dump-times "return 1" 1 "vrp1" } } * /
|
/* { dg-final { cleanup-tree-dump "vrp1" } } */
|
/* { dg-final { cleanup-tree-dump "vrp1" } } */
|
|
|
|
|
|
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.