OSDN Git Service

* gcc.dg/vect/vect-80.c: Add xfail for no_align targets.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / vect / vect-96.c
1 /* { dg-require-effective-target vect_int } */
2
3 #include <stdarg.h>
4 #include "tree-vect.h"
5
6 #define N 16
7
8 struct tmp
9 {
10      int x;
11      int ia[N];
12 };
13
14 int main1 (int off)
15 {
16   struct tmp sb[N];
17   struct tmp *pp = &sb[off];
18   int i, ib[N];
19
20   for (i = 0; i < N; i++)
21       pp->ia[i] = ib[i];
22
23   /* check results: */  
24   for (i = 0; i < N; i++)
25     {
26        if (pp->ia[i] != ib[i])
27          abort();
28     }
29
30   return 0;
31 }
32
33 int main (void)
34
35   check_vect ();
36
37   return main1 (8);
38 }
39
40 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail vect_no_align } } } */
41 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 1 "vect" { xfail vect_no_align } } } */
42 /* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 1 "vect" { xfail vect_no_align } } } */