SMS: Add new testcase

Co-Authored-By: Revital Eres <eres@il.ibm.com>

From-SVN: r129575
This commit is contained in:
Tehila Meyzels 2007-10-23 07:53:42 +00:00 committed by Revital Eres
parent f168817602
commit 1be3290eae
2 changed files with 39 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-10-23 Tehila Meyzels <tehila@il.ibm.com>
Revital Eres <eres@il.ibm.com>
* testsuite/gcc.dg/sms-2.c: New testcase.
2007-10-22 David S. Miller <davem@davemloft.net>
* gcc.dg/globalreg-1.c: New test.

View File

@ -0,0 +1,34 @@
/* 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;
}
}