Move some complex simplifications to match.pd
commitd92f7c8d56ed100aa7af60eb689d156a91b4514c
authorglisse <glisse@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 Aug 2015 13:58:03 +0000 (31 13:58 +0000)
committerglisse <glisse@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 Aug 2015 13:58:03 +0000 (31 13:58 +0000)
treec26fa5f5145de35b67986eba639c14373a7fd516
parent303352c37efab29598fe5480c4243d29cbf962f1
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227343 138bc75d-0d04-0410-961f-82ee72b054a4
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]