OSDN Git Service

PR rtl-optimization/52139
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-fre-21.c
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-fre1" } */
3
4 struct f {
5   float a;
6   float b;
7   float c;
8   float d;
9 };
10
11 struct f a;
12
13 void h(float, float, float, float);
14
15 void g(void)
16 {
17   float a1 = a.a, b = a.b, c = a.c, d = a.d;
18   a.a = a1;
19   a.b = b;
20   a.c = c;
21   a.d = d;
22   h(a1, b, c, d);
23 }
24
25 /* { dg-final { scan-tree-dump-not "a\\\.? = " "fre1" } } */
26 /* { dg-final { cleanup-tree-dump "fre1" } } */