summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/slp-1.c
blob: bb352020f9753d9f7cfa282edb112b07d081711c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-vectorize -fno-vect-cost-model" } */

struct R {
  double d1;
  double d2;
};

struct R foo (struct R arg)
{
  struct R ret;
  ret.d1 = arg.d2 * (0.0 - arg.d1);
  ret.d2 = ret.d1;
  return ret;
}