1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -fdump-tree-lim2-details" } */
       3  
       4  double a[16][64], y[64], x[16];
       5  void foo(void)
       6  {
       7    int i, j;
       8    for (j = 0; j < 64; ++j)
       9      for (i = 0; i < 16; ++i)
      10        y[j] = y[j] + a[i][j] * x[i];
      11  }
      12  
      13  /* { dg-final { scan-tree-dump "Executing store motion of y" "lim2" } } */