1  /* { dg-do compile } */
       2  
       3  typedef int __attribute__((vector_size(16))) vec_t;
       4  
       5  vec_t src, inv, res;
       6  
       7  void test(int i)
       8  {
       9      vec_t y={0};
      10      y[i] = (i & 1 ? inv : src)[i];
      11      res = y;
      12  }