1  /* { dg-do compile } */
       2  /* { dg-options "-O" } */
       3  
       4  extern int a[];
       5  
       6  void loop_clear (int i)
       7  {
       8    while (i > 0)
       9      a[i--] = 0;
      10  }
      11  
      12  /* { dg-final { scan-assembler-times "cmp" 1 { xfail *-*-* } } } */
      13  
      14  /* FIXME: the redundant cmp is not eliminated because the compare-elim pass
      15     is run before the dbr pass.  It's a regression wrt the cc0 port.  */