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 "-O -fdump-tree-optimized" } */
|
/* { dg-options "-O -fdump-tree-optimized" } */
|
|
|
int foo(int a)
|
int foo(int a)
|
{
|
{
|
unsigned int b = a > 0;
|
unsigned int b = a > 0;
|
char c = b;
|
char c = b;
|
_Bool d = c == 0;
|
_Bool d = c == 0;
|
int e = !d;
|
int e = !d;
|
return e;
|
return e;
|
}
|
}
|
|
|
/* { dg-final { scan-tree-dump "e_. = a_..D. > 0;" "optimized" } } */
|
/* { dg-final { scan-tree-dump "e_. = a_..D. > 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.