annotate gcc/testsuite/gcc.dg/slp-1.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
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-options "-O2 -ftree-vectorize -fno-vect-cost-model" } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 struct R {
kono
parents:
diff changeset
5 double d1;
kono
parents:
diff changeset
6 double d2;
kono
parents:
diff changeset
7 };
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 struct R foo (struct R arg)
kono
parents:
diff changeset
10 {
kono
parents:
diff changeset
11 struct R ret;
kono
parents:
diff changeset
12 ret.d1 = arg.d2 * (0.0 - arg.d1);
kono
parents:
diff changeset
13 ret.d2 = ret.d1;
kono
parents:
diff changeset
14 return ret;
kono
parents:
diff changeset
15 }