PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / pr44136.c
blob31f1924619aa13b9c49eb357325f3f12659a865e
1 /* PR debug/44136 */
2 /* { dg-do compile } */
3 /* { dg-options "-w -O2 -g" } */
4 /* { dg-options "-w -Wno-psabi -O2 -g -mno-sse" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
6 #define vector __attribute((vector_size(16)))
7 vector float a;
9 float
10 foo (float b)
12 vector float c = { 0, 0, 0, 0 };
13 vector float d = { 0, 0, 0, 0 };
14 d += c;
15 return ((float *)&c)[2];
18 float
19 bar (vector float a, int b, vector float c)
21 vector float e = c * a;
22 a = (vector float) { 0, 0, 0, 0 };
23 c = (vector float) { 0, 0, 0, 0 };
24 float d = ((float *)&a)[0];
25 float f = ((float *)&c)[0];
26 return d * f;