1  /* { dg-do compile } */
       2  
       3  void
       4  vec_slp_int16_t (short int *restrict a, short int *restrict b, int n)
       5  {
       6    short int x0 = b[0];
       7    short int x1 = b[1];
       8    short int x2 = b[2];
       9    short int x3 = b[3];
      10    for (int i = 0; i < n; ++i)
      11    {
      12      x0 += a[i * 4];
      13      x1 += a[i * 4 + 1];
      14      x2 += a[i * 4 + 2];
      15      x3 += a[i * 4 + 3];
      16    }
      17    b[0] = x0;
      18    b[1] = x1;
      19    b[2] = x2;
      20    b[3] = x3;
      21  }