aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr117307.c
blob: dc853d61706531226c8da882f65be1c668d36f4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-additional-options "-march=x86-64-v4" { target { x86_64-*-* i?86-*-* } } } */

int a;
float *b, *c;
float d;
void e() {
  for (; a; a++) {
    if (d) {
      c[0] = b[0];
      c[1] = b[1];
    } else if (b[1])
      c[0] = b[0] * 0;
    b += 2;
    c += 2;
  }
}