blob: 918f6c82378ce6c23085c84b6a4d2e888ed0b409 [file] [log] [blame]
/* The same test as 921011-1.c. It can fails on gcc 4.1 due to a dfs
traversal of the loops after versioning. */
/* { dg-do compile } */
/* { dg-options "-O2 -fmodulo-sched -dm" } */
void
fun (nb)
int nb;
{
int th, h, em, nlwm, nlwS, nlw, sy;
while (nb--)
while (h--)
{
nlw = nlwm;
while (nlw)
{
if (nlwS == 1)
{
}
else
if (nlwS == 1)
{
}
nlwS--; nlw--;
}
if (em)
nlwS--;
if (++sy == th)
sy = 0;
}
}
/* { dg-final { cleanup-rtl-dump "sms" } } */