aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/vect/vect-124.c
blob: f659b94baba050c06b8212979fe22873f08e5aba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "tree-vect.h"

#ifndef N
#define N 64
#endif

int a[N];

__attribute__((noinline, noclone)) void
foo (int x)
{
  int i;
  for (i = 0; i < N; i++, x += 3)
    a[i] = x;
}

int
main ()
{
  int i;
  
  check_vect ();
  foo (6);
  for (i = 0; i < N; i++)
    if (a[i] != i * 3 + 6)
      abort ();
  return 0;
}

/* { dg-final { cleanup-tree-dump "vect" } } */