OSDN Git Service

For Greta Yorsh.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-fre-32.c
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-fre1-details" } */
3
4 _Complex float 
5 foo (_Complex float x)
6 {    
7   float r = __real x;
8   float i = __imag x;
9   _Complex float z;
10   __real z = r;
11   __imag z = i;
12   return z;
13
14
15 _Complex float 
16 bar (_Complex float x)
17 {    
18   float r = __real x;
19   float i = __imag x;
20   _Complex float z = x;
21   __real z = r;
22   __imag z = i;
23   return z;
24
25
26 /* We should CSE all the way to replace the final assignment to z with x.  */
27 /* { dg-final { scan-tree-dump-times "with x_1\\\(D\\\) in z" 3 "fre1" } } */
28 /* { dg-final { cleanup-tree-dump "fre1" } } */