Move some complex simplifications to match.pd
commit77c028c5229627905a5ae17726868561bdd65da8
authorMarc Glisse <marc.glisse@inria.fr>
Mon, 31 Aug 2015 13:58:03 +0000 (31 15:58 +0200)
committerMarc Glisse <glisse@gcc.gnu.org>
Mon, 31 Aug 2015 13:58:03 +0000 (31 13:58 +0000)
treec26fa5f5145de35b67986eba639c14373a7fd516
parenteaef98f3afdda197bc052c4a341d7a3529a77106
Move some complex simplifications to match.pd

2015-08-31  Marc Glisse  <marc.glisse@inria.fr>

gcc/
* match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
(CEXPI): New operator list.
(real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
Converted from ...
* fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.

gcc/testsuite/
* gcc.dg/tree-ssa/complex-7.c: New file.

From-SVN: r227343
gcc/ChangeLog
gcc/fold-const.c
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/complex-7.c [new file with mode: 0644]