Merge branches/gcc-4_9-branch rev 225109.
[official-gcc.git] / gcc-4_9-branch / gcc / testsuite / gcc.dg / vect / costmodel / ppc / costmodel-bb-slp-9a.c
blobf0e302ae101c86f6ceeb0b471fd8292813962966
1 /* { dg-require-effective-target vect_int } */
3 #include "../../tree-vect.h"
5 #define N 16
7 unsigned int out[N];
8 unsigned int in[N] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
10 __attribute__ ((noinline)) int
11 main1 (void)
13 unsigned int *pin = &in[1];
14 unsigned int *pout = &out[0];
16 /* Misaligned load. */
17 *pout++ = *pin++;
18 *pout++ = *pin++;
19 *pout++ = *pin++;
20 *pout++ = *pin++;
22 return 0;
25 int main (void)
27 check_vect ();
29 main1 ();
31 /* Check results. */
32 if (out[0] != in[1]
33 || out[1] != in[2]
34 || out[2] != in[3]
35 || out[3] != in[4])
36 abort();
38 return 0;
41 /* { dg-final { scan-tree-dump-times "basic block vectorized" 1 "slp" { xfail { vect_no_align && { ! vect_hw_misalign } } } } } */
42 /* { dg-final { cleanup-tree-dump "slp" } } */