aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr106196.c
blob: 56723de42c2cd87e4dd32fbf3a5c0ed8c4f58f09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-additional-options "-ftree-vectorize -fno-vect-cost-model" } */

extern char a[];
char *b;
void e() {
  char *d;
  int c;
  d = a;
  for (; c; c++) {
    d[2] = d[1] = d[0] = b[c];
    d += 3;
  }
}