aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr96920.c
blob: af5da4ae52e93f7d3195e45b39eb819b261c4891 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */

int a[1024];
int b[2048];

void foo (int x, int y)
{
  for (int i = 0; i < 1024; ++i)
    {
      int tem0 = b[2*i];
      int tem1 = b[2*i+1];
      for (int j = 0; j < 32; ++j)
	{
	  int tem = tem0;
	  tem0 = tem1;
	  tem1 = tem;
	  a[i] += tem0;
	}
    }
}