URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-fstrict-overflow -O2 -fdump-tree-final_cleanup" } */
|
/* { dg-options "-fstrict-overflow -O2 -fdump-tree-final_cleanup" } */
|
|
|
/* Source: Ian Lance Taylor. Dual of no-strict-overflow-1.c. */
|
/* Source: Ian Lance Taylor. Dual of no-strict-overflow-1.c. */
|
|
|
/* We can only simplify the conditional when using strict overflow
|
/* We can only simplify the conditional when using strict overflow
|
semantics. */
|
semantics. */
|
|
|
int
|
int
|
foo (int i)
|
foo (int i)
|
{
|
{
|
return i - 5 < 10;
|
return i - 5 < 10;
|
}
|
}
|
|
|
/* { dg-final { scan-tree-dump-not "-[ ]*5" "final_cleanup" } } */
|
/* { dg-final { scan-tree-dump-not "-[ ]*5" "final_cleanup" } } */
|
/* { dg-final { cleanup-tree-dump "final_cleanup" } } */
|
/* { dg-final { cleanup-tree-dump "final_cleanup" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.