URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 816 |
Rev 826 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2 -fdump-tree-forwprop" } */
|
/* { dg-options "-O2 -fdump-tree-forwprop" } */
|
|
|
f (int i, float j)
|
f (int i, float j)
|
{
|
{
|
if (__builtin_expect (i > 0 && __builtin_expect (j != 0, 1), 0))
|
if (__builtin_expect (i > 0 && __builtin_expect (j != 0, 1), 0))
|
a ();
|
a ();
|
else
|
else
|
b ();
|
b ();
|
}
|
}
|
|
|
/* { dg-final { scan-tree-dump-times { if } 2 "forwprop1"} } */
|
/* { dg-final { scan-tree-dump-times { if } 2 "forwprop1"} } */
|
/* { dg-final { scan-tree-dump {builtin_expect[^\n]*, 0\);\n[^\n]*if} "forwprop1"} } */
|
/* { dg-final { scan-tree-dump {builtin_expect[^\n]*, 0\);\n[^\n]*if} "forwprop1"} } */
|
/* { dg-final { scan-tree-dump {builtin_expect[^\n]*, 1\);\n[^\n]*if} "forwprop1"} } */
|
/* { dg-final { scan-tree-dump {builtin_expect[^\n]*, 1\);\n[^\n]*if} "forwprop1"} } */
|
/* { dg-final { cleanup-tree-dump "forwprop?" } } */
|
/* { dg-final { cleanup-tree-dump "forwprop?" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.