URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* PR optimization/10171 */
|
/* PR optimization/10171 */
|
/* Bug: unroll_loop misoptimized the function so that we got
|
/* Bug: unroll_loop misoptimized the function so that we got
|
0 iterations of the loop rather than the correct 1. */
|
0 iterations of the loop rather than the correct 1. */
|
/* { dg-do run } */
|
/* { dg-do run } */
|
|
|
extern void abort (void);
|
extern void abort (void);
|
extern void exit (int);
|
extern void exit (int);
|
|
|
__inline__ int tag() { return 0; }
|
__inline__ int tag() { return 0; }
|
|
|
void f ();
|
void f ();
|
|
|
int main() {
|
int main() {
|
int i;
|
int i;
|
for (i = 0; i < (tag() ? 2 : 1); i++)
|
for (i = 0; i < (tag() ? 2 : 1); i++)
|
f();
|
f();
|
abort ();
|
abort ();
|
}
|
}
|
|
|
void f ()
|
void f ()
|
{
|
{
|
exit (0);
|
exit (0);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.