(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
powerpc/
pr61837.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -fdump-rtl-loop2_doloop -fno-unroll-loops" } */
       3  /* The inner loop would use the doloop IV in word_mode.  And then
       4     there is no need to access it though zero_extend on shorter mode.  */
       5  void foo(int *p1, long *p2, int s)
       6  {
       7    int n, v, i;
       8  
       9    v = 0;
      10    for (n = 0; n <= 100; n++) {
      11       for (i = 0; i < s; i++)
      12          if (p2[i] == n)
      13             p1[i] = v;
      14       v += 88;
      15    }
      16  }
      17  
      18  /* { dg-final {scan-rtl-dump-not {(?p)zero_extend.*doloop} "loop2_doloop"} } */
      19  /* { dg-final {scan-rtl-dump-not {(?p)reg:SI.*doloop} "loop2_doloop" { target lp64 } } } */
      20