1 /* { dg-do compile } */ 2 /* { dg-options "-O -fdump-tree-fre1-details" } */ 3 /* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */ 4 5 #define vector __attribute__((vector_size(16) )) 6 7 struct { 8 float i; 9 vector float global_res; 10 } s; 11 float x; main(int argc)12int main(int argc) 13 { 14 vector float res; 15 res = (vector float){1.0f,2.0f,3.0f,5.0f}; 16 s.global_res = res; 17 x = *((float*)&s.global_res + 1); 18 return 0; 19 } 20 21 /* { dg-final { scan-tree-dump "Replaced BIT_FIELD_REF.*with 2" "fre1" } } */ 22