gcc/testsuite/gcc.dg/tree-ssa/complex-8.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O1 -fdump-tree-cplxlower1-raw" } */ |
| 3 | |
| 4 | _Complex double f(double a, double c) |
| 5 | { |
| 6 | _Complex double d = __builtin_complex (a, a); |
| 7 | d+=__builtin_complex(c, c); |
| 8 | return d; |
| 9 | } |
| 10 | |
| 11 | /* There should only be one plus as (a+c) is still (a+c) */ |
| 12 | /* { dg-final { scan-tree-dump-times "plus_expr, " 1 "cplxlower1" } } */ |