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 "-O -fdump-tree-fre" } */
|
/* { dg-options "-O -fdump-tree-fre" } */
|
|
|
/* FRE should be able to combine i and j and perform simplification
|
/* FRE should be able to combine i and j and perform simplification
|
on the condition. */
|
on the condition. */
|
|
|
extern void link_error (void);
|
extern void link_error (void);
|
int i;
|
int i;
|
int foo(int b, int c)
|
int foo(int b, int c)
|
{
|
{
|
i = b + 1;
|
i = b + 1;
|
int j = i - 1;
|
int j = i - 1;
|
if (b != j)
|
if (b != j)
|
link_error ();
|
link_error ();
|
}
|
}
|
|
|
/* { dg-final { scan-tree-dump-not "link_error" "fre" } } */
|
/* { dg-final { scan-tree-dump-not "link_error" "fre" } } */
|
/* { dg-final { cleanup-tree-dump "fre" } } */
|
/* { dg-final { cleanup-tree-dump "fre" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.