Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-fre-33.c
blob4108188460190842cea70ed7bdaaefd0218a870b
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-fre1-details" } */
3 /* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */
5 #define vector __attribute__((vector_size(16) ))
7 struct {
8 float i;
9 vector float global_res;
10 } s;
11 float x;
12 int main(int argc)
14 vector float res = (vector float){0.0f,0.0f,0.0f,1.0f};
15 res += (vector float){1.0f,2.0f,3.0f,4.0f};
16 s.global_res = res;
17 x = *((float*)&s.global_res + 1);
18 return 0;
21 /* { dg-final { scan-tree-dump "Replaced BIT_FIELD_REF.*with 2" "fre1" } } */
22 /* { dg-final { cleanup-tree-dump "fre1" } } */