annotate gcc/testsuite/gcc.dg/vect/pr37027.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-require-effective-target vect_int } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 #include <stdarg.h>
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 struct mystr
kono
parents:
diff changeset
7 {
kono
parents:
diff changeset
8 int f1;
kono
parents:
diff changeset
9 int f2;
kono
parents:
diff changeset
10 };
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 struct mystr a[16];
kono
parents:
diff changeset
13 struct mystr b[16];
kono
parents:
diff changeset
14 int res1, res2;
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 void
kono
parents:
diff changeset
18 foo (void)
kono
parents:
diff changeset
19 {
kono
parents:
diff changeset
20 int i;
kono
parents:
diff changeset
21 int sum1 = 0;
kono
parents:
diff changeset
22 int sum2 = 0;
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 for (i = 0; i < 16; i++)
kono
parents:
diff changeset
25 {
kono
parents:
diff changeset
26 sum1 += a[i].f1 + b[i].f1;
kono
parents:
diff changeset
27 sum2 += a[i].f2 + b[i].f2;
kono
parents:
diff changeset
28 }
kono
parents:
diff changeset
29
kono
parents:
diff changeset
30 res1 = sum1;
kono
parents:
diff changeset
31 res2 = sum2;
kono
parents:
diff changeset
32 }
kono
parents:
diff changeset
33
kono
parents:
diff changeset
34 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail vect_no_int_add } } } */
kono
parents:
diff changeset
35 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { xfail vect_no_int_add } } } */
kono
parents:
diff changeset
36