blob: 740e9d2cd67eeab2e525dafe4f48edd4f972c28a [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O" } */
extern int a[];
void loop_clear (int i)
{
while (i > 0)
a[i--] = 0;
}
/* { dg-final { scan-assembler-times "cmp" 1 { xfail *-*-* } } } */
/* FIXME: the redundant cmp is not eliminated because the compare-elim pass
is run before the dbr pass. It's a regression wrt the cc0 port. */