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 "-O1 -fdump-tree-local-pure-const1" } */
|
/* { dg-options "-O1 -fdump-tree-local-pure-const1" } */
|
/* { dg-add-options bind_pic_locally } */
|
/* { dg-add-options bind_pic_locally } */
|
|
|
t(int a, int b, int c)
|
t(int a, int b, int c)
|
{
|
{
|
int *p;
|
int *p;
|
if (a)
|
if (a)
|
p = &a;
|
p = &a;
|
else
|
else
|
p = &c;
|
p = &c;
|
return *p;
|
return *p;
|
}
|
}
|
/* { dg-final { scan-tree-dump-times "local memory is OK" 1 "local-pure-const1"} } */
|
/* { dg-final { scan-tree-dump-times "local memory is OK" 1 "local-pure-const1"} } */
|
/* { dg-final { scan-tree-dump-times "found to be const" 1 "local-pure-const1"} } */
|
/* { dg-final { scan-tree-dump-times "found to be const" 1 "local-pure-const1"} } */
|
/* { dg-final { cleanup-tree-dump "local-pure-const1" } } */
|
/* { dg-final { cleanup-tree-dump "local-pure-const1" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.