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 "-O -fdump-tree-fre-details" } */
|
/* { dg-options "-O -fdump-tree-fre-details" } */
|
|
|
struct
|
struct
|
{
|
{
|
int x;
|
int x;
|
int y;
|
int y;
|
} S[100];
|
} S[100];
|
|
|
int z[100];
|
int z[100];
|
|
|
int
|
int
|
foo (int y)
|
foo (int y)
|
{
|
{
|
int x;
|
int x;
|
|
|
S[5].x = 4;
|
S[5].x = 4;
|
S[5].y = 0;
|
S[5].y = 0;
|
|
|
x = S[5].x;
|
x = S[5].x;
|
|
|
return (x);
|
return (x);
|
}
|
}
|
|
|
/* { dg-final { scan-tree-dump "Replaced S\\\[5\\\].x with 4" "fre" } } */
|
/* { dg-final { scan-tree-dump "Replaced S\\\[5\\\].x with 4" "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.