Merge branches/gcc-4_9-branch rev 225109.
[official-gcc.git] / gcc-4_9-branch / gcc / testsuite / gcc.dg / vect / bb-slp-32.c
blob09232ef30bc326d244100481e2cc8d98ecd199be
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
3 /* { dg-additional-options "-fvect-cost-model=dynamic" } */
5 void bar (int *);
6 int foo (int *p)
8 int x[4];
9 int tem0, tem1, tem2, tem3;
10 tem0 = p[0] + 1;
11 x[0] = tem0;
12 tem1 = p[1] + 2;
13 x[1] = tem1;
14 tem2 = p[2] + 3;
15 x[2] = tem2;
16 tem3 = p[3] + 4;
17 x[3] = tem3;
18 bar (x);
19 return tem0 + tem1 + tem2 + tem3;
22 /* { dg-final { scan-tree-dump "vectorization is not profitable" "slp" { xfail { vect_no_align && { ! vect_hw_misalign } } } } } */
23 /* { dg-final { cleanup-tree-dump "slp" } } */