Imported Upstream version 4.7.3
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.dg / vect / no-tree-sra-bb-slp-pr50730.c
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_float } */
3
4 typedef __complex__ float Value;
5 typedef struct {
6   Value a[16 / sizeof (Value)];
7 } A;
8
9 A sum(A a,A b)
10 {
11   a.a[0]+=b.a[0];
12   a.a[1]+=b.a[1];
13   return a;
14 }
15
16 /* { dg-final { scan-tree-dump-times "not vectorized: more than one data ref in stmt" 0 "slp" } } */
17 /* { dg-final { cleanup-tree-dump "slp" } } */