1  /* { dg-do compile } */
       2  /* { dg-require-effective-target vect_double } */
       3  
       4  double a[2];
       5  double b[2];
       6  double c[2];
       7  double e[2];
       8  void foo(double x)
       9  {
      10    double tembc0 = b[1] + c[1];
      11    double tembc1 = b[0] + c[0];
      12    double temde0 = 5 + e[1];
      13    double temde1 = 11 + e[0];
      14    a[0] = tembc0 + temde0;
      15    a[1] = tembc1 + temde1;
      16  }
      17  
      18  /* We should common the permutations on the tembc{0,1} and temde{0,1}
      19     operands.  */
      20  /* { dg-final { scan-tree-dump-times "add new stmt: \[^\\r\\n\]* VEC_PERM_EXPR" 1 "slp2" } } */