blob: e92be29351b14b33f06a224a1323a6d2c2856a1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-fre1-details" } */
/* { dg-options "-O -fdump-tree-fre1-details -fno-common" { target hppa*-*-hpux* } } */
#define vector __attribute__((vector_size(16) ))
struct {
float i;
vector float global_res;
} s;
float foo(float f)
{
vector float res = (vector float){0.0f,f,0.0f,1.0f};
s.global_res = res;
return *((float*)&s.global_res + 1);
}
/* { dg-final { scan-tree-dump "Replaced BIT_FIELD_REF.*with f" "fre1" } } */
/* { dg-final { cleanup-tree-dump "fre1" } } */
|