1  /* { dg-do run } */
       2  
       3  #include "tree-vect.h"
       4  
       5  int a[35] = { 1, 1, 3 };
       6  
       7  void __attribute__((noipa))
       8  foo ()
       9  {
      10    for (int b = 4; b >= 0; b--)
      11      {
      12        int tem = a[b * 5 + 3 + 1];
      13        a[b * 5 + 3] = tem;
      14        a[b * 5 + 2] = tem;
      15        a[b * 5 + 1] = tem;
      16        a[b * 5 + 0] = tem;
      17      }
      18  }
      19  
      20  int main()
      21  {
      22    check_vect ();
      23    foo ();
      24    for (int d = 0; d < 25; d++)
      25      if (a[d] != 0)
      26        __builtin_abort ();
      27    return 0;
      28  }