2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-26.c
blob268ed05061f7271f1d3b8f47871433b92d89b1b2
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 128
8 /* unaligned store. */
10 __attribute__ ((noinline))
11 int main1 ()
13 int i;
14 int ia[N+1];
16 for (i = 1; i <= N; i++)
18 ia[i] = 5;
21 /* check results: */
22 for (i = 1; i <= N; i++)
24 if (ia[i] != 5)
25 abort ();
28 return 0;
31 int main (void)
33 check_vect ();
35 return main1 ();
38 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
39 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 1 "vect" { xfail {! vect_hw_misalign} } } } */
40 /* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 1 "vect" { xfail vect_hw_misalign } } } */
41 /* { dg-final { cleanup-tree-dump "vect" } } */