Debian Codegraph @

gcc/testsuite/gcc.dg/vect/pr68855.c

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_float } */
3
4 /* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" } } */
5
6 /* PAREN_EXPR should not cause the vectorization of complex float add to be missed. */
7 void foo(_Complex float *a, int n)
8 {
9 for(int i = 0; i < n; i++)
10 {
11 _Complex float t;
12 t = a[i];
13 t += 6.0;
14 t = __builtin_assoc_barrier(t);
15 a[i] = t;
16 }
17 }