summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr42709.c
blob: 8ccbfa65e8140295f4693623e617985fd7982810 (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
/* { dg-do compile } */
/* { dg-require-effective-target vect_int } */

#include <stdarg.h>
#include "tree-vect.h"

#define N 128 

int *res[N];

int
main1 (int *a, int *b, int *c, int *d, int dummy)
{
  int i;

  for (i = 0; i < N/2; i+=4)
    {
      res[i] = a + 16;
      res[i+1] = b + 16;
      res[i+2] = c + 16;
      res[i+3] = d + 16;
      if (dummy == 32)
        abort ();
    } 
}

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