Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/slp-1.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* { dg-do compile } */ | |
2 /* { dg-options "-O2 -ftree-vectorize -fno-vect-cost-model" } */ | |
3 | |
4 struct R { | |
5 double d1; | |
6 double d2; | |
7 }; | |
8 | |
9 struct R foo (struct R arg) | |
10 { | |
11 struct R ret; | |
12 ret.d1 = arg.d2 * (0.0 - arg.d1); | |
13 ret.d2 = ret.d1; | |
14 return ret; | |
15 } |