(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr92301.c
       1  /* { dg-do run } */
       2  /* { dg-options "-O3" } */
       3  
       4  unsigned int m;
       5  
       6  #define N 128
       7  unsigned int a[N];
       8  
       9  unsigned int
      10  __attribute__((noipa))
      11  df_count_refs (_Bool include_defs)
      12  {
      13    int size = 0;
      14  
      15    for (unsigned int regno = 0; regno < m; regno++)
      16      if (include_defs)
      17        size += a[regno];
      18    return size;
      19  }
      20  
      21  int main(int argc, char **argv)
      22  {
      23    for (unsigned i = 0; i < N; i++)
      24      a[i] = i;
      25  
      26    if (argc < 2)
      27      m = 17;
      28  
      29    unsigned int r = df_count_refs(1);
      30    __builtin_printf ("r: %d\n", r);
      31    if (r != 136)
      32      __builtin_abort ();
      33  
      34    return 0;
      35  }