aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/vect/no-tree-sra-bb-slp-pr50730.c
blob: 90dcd8443349bbba7a0373c67d9f7b2391735965 (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 } */

typedef __complex__ float Value;
typedef struct {
  Value a[16 / sizeof (Value)];
} A;

A sum(A a,A b)
{
  a.a[0]+=b.a[0];
  a.a[1]+=b.a[1];
  return a;
}

/* { dg-final { scan-tree-dump-times "not vectorized: more than one data ref in stmt" 0 "slp" } } */
/* { dg-final { cleanup-tree-dump "slp" } } */