| 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-*-* } } } */ |
| 4 |
|
| 5 |
|
| 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) |
| 9 |
{ |
| 10 |
return ((float*)&t)[0]; |
| 11 |
} |
| 12 |
|
| 13 |
float f1(vector float t) |
| 14 |
{ |
| 15 |
return ((float*)&t)[1]; |
| 16 |
} |
| 17 |
|
| 18 |
float f2(vector float t) |
| 19 |
{ |
| 20 |
return ((float*)&t)[2]; |
| 21 |
} |
| 22 |
|
| 23 |
float f3(vector float t) |
| 24 |
{ |
| 25 |
return ((float*)&t)[3]; |
| 26 |
} |
| 27 |
|
| 28 |
|
| 29 |
/* { dg-final { scan-tree-dump-times "BIT_FIELD_REF" 4 "gimple"} } */ |
| 30 |
|
| 31 |
|
| 32 |
|