URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 816 |
Rev 826 |
/* PR rtl-optimization/31360 */
|
/* PR rtl-optimization/31360 */
|
|
|
/* { dg-do compile { target { powerpc*-*-* } } } */
|
/* { dg-do compile { target { powerpc*-*-* } } } */
|
/* { dg-options "-O1 -fdump-rtl-loop2_invariant" } */
|
/* { dg-options "-O1 -fdump-rtl-loop2_invariant" } */
|
|
|
void f(int *a)
|
void f(int *a)
|
{
|
{
|
int i;
|
int i;
|
for (i = 0;i<100;i++)
|
for (i = 0;i<100;i++)
|
a[i] = 0;
|
a[i] = 0;
|
}
|
}
|
|
|
/* Load of 0 is moved out of the loop. */
|
/* Load of 0 is moved out of the loop. */
|
/* { dg-final { scan-rtl-dump-times "Decided" 1 "loop2_invariant" } } */
|
/* { dg-final { scan-rtl-dump-times "Decided" 1 "loop2_invariant" } } */
|
/* { dg-final { cleanup-rtl-dump "loop2_invariant" } } */
|
/* { dg-final { cleanup-rtl-dump "loop2_invariant" } } */
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.