OSDN Git Service

2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / vector-1.c
1 /* { dg-do compile } */
2 /* { dg-options "-w -O1 -fdump-tree-gimple" } */
3
4
5 /* We should be able to produce a BIT_FIELD_REF for each of these vector access. */
6 #define vector __attribute__((vector_size(16)))
7 float f0(vector float t)
8 {
9   return ((float*)&t)[0];
10 }
11
12 float f1(vector float t)
13 {
14   return ((float*)&t)[1];
15 }
16
17 float f2(vector float t)
18 {
19   return ((float*)&t)[2];
20 }
21
22 float f3(vector float t)
23 {
24   return ((float*)&t)[3];
25 }
26
27
28 /* { dg-final { scan-tree-dump-times "BIT_FIELD_REF" 4 "gimple"} } */
29
30 /* { dg-final { cleanup-tree-dump "gimple" } } */
31
32