summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/visium/loop_clear.c
blob: 740e9d2cd67eeab2e525dafe4f48edd4f972c28a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { 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.  */