(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
pru/
loop-ubyte-1.c
       1  /* Test LOOP recognition */
       2  
       3  /* { dg-do run } */
       4  /* { dg-options "-O1 -mloop" } */
       5  
       6  /* -O1 in the options is significant.  Without it do-loop will not be
       7     run.  */
       8  
       9  extern void abort (void);
      10  
      11  unsigned int
      12  test_loop_ubyte_101 (void)
      13  {
      14    unsigned int i;
      15    volatile unsigned int s = 0;
      16  
      17    for (i = 0; i < 101; i++)
      18      s++;
      19    return s;
      20  }
      21  
      22  int
      23  main (int argc, char** argv)
      24  {
      25    if (test_loop_ubyte_101 () != 101)
      26      abort();
      27  
      28    return 0;
      29  }
      30