gcc/
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / vector-1.c
blob6fe0e872bb9845d70e043fc588055b6904c080c7
1 /* { dg-do compile } */
2 /* { dg-options "-w -O1 -fdump-tree-gimple" } */
3 /* { dg-options "-w -O1 -fdump-tree-gimple -msse" { target { i?86-*-* x86_64-*-* } } } */
6 /* We should be able to produce a BIT_FIELD_REF for each of these vector access. */
7 #define vector __attribute__((vector_size(16)))
8 float f0(vector float t)
10 return ((float*)&t)[0];
13 float f1(vector float t)
15 return ((float*)&t)[1];
18 float f2(vector float t)
20 return ((float*)&t)[2];
23 float f3(vector float t)
25 return ((float*)&t)[3];
29 /* { dg-final { scan-tree-dump-times "BIT_FIELD_REF" 4 "gimple"} } */
31 /* { dg-final { cleanup-tree-dump "gimple" } } */