Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / vector-1.c
blob5b07c67a2c65284fbc21f6ee72cfb17ad8f6f3fa
1 /* { dg-do compile } */
2 /* { dg-options "-w -O1 -fdump-tree-gimple" } */
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)
9 return ((float*)&t)[0];
12 float f1(vector float t)
14 return ((float*)&t)[1];
17 float f2(vector float t)
19 return ((float*)&t)[2];
22 float f3(vector float t)
24 return ((float*)&t)[3];
28 /* { dg-final { scan-tree-dump-times "BIT_FIELD_REF" 4 "gimple"} } */
30 /* { dg-final { cleanup-tree-dump "gimple" } } */