aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr68855.c
blob: 68a3a1cee36ef53ced7ecdd2227b38eeceacd82f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-require-effective-target vect_float } */

/* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" } } */

/* PAREN_EXPR should not cause the vectorization of complex float add to be missed. */
void foo(_Complex float *a, int n)
{
  for(int i = 0; i < n; i++)
  {
    _Complex float t;
    t = a[i];
    t += 6.0;
    t = __builtin_assoc_barrier(t);
    a[i] = t;
  }
}