Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / vect / vect-complex-5.c
blob83d04cd04644ccb69197af1b9414fe53631af048
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 16
8 struct foostr {
9 _Complex short f1;
10 _Complex short f2;
13 _Complex short a1[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
14 _Complex short a2[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
15 _Complex short b1[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
16 _Complex short b2[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
17 struct foostr c[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
19 __attribute__ ((noinline)) void
20 foo (void)
22 int i;
24 for (i = 0; i < N; i++)
26 c[i].f1 = a1[i] + b1[i];
27 c[i].f2 = a2[i] + b2[i];
32 int
33 main (void)
35 int i;
36 check_vect ();
38 foo ();
40 return 0;
43 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 0 "vect" } } */
44 /* { dg-final { cleanup-tree-dump "vect" } } */