URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 384 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
|
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
|
|
|
struct { int x; int y; } global;
|
struct { int x; int y; } global;
|
void foo(int n)
|
void foo(int n)
|
{
|
{
|
int i;
|
int i;
|
for ( i=0; i<n; i++)
|
for ( i=0; i<n; i++)
|
global.y += global.x*global.x;
|
global.y += global.x*global.x;
|
}
|
}
|
|
|
/* { dg-final { scan-tree-dump "Eliminated: 3" "pre" } } */
|
/* { dg-final { scan-tree-dump "Eliminated: 3" "pre" } } */
|
/* { dg-final { cleanup-tree-dump "pre" } } */
|
/* { dg-final { cleanup-tree-dump "pre" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.