aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/complex-8.c
blob: a9636ff9e9a5dcedb90ddf4e9ae45e807ba8b144 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-cplxlower1-raw" } */

_Complex double f(double a, double c)
{
  _Complex double d = __builtin_complex (a, a);
  d+=__builtin_complex(c, c);
  return d;
}

/* There should only be one plus as (a+c) is still (a+c) */
/* { dg-final { scan-tree-dump-times "plus_expr, " 1 "cplxlower1" } } */