]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR middle-end/30198 (__real / __imag cexpi (x) can be folded to cos (x) / sin...
authorRichard Guenther <rguenther@suse.de>
Thu, 14 Dec 2006 13:09:24 +0000 (13:09 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 14 Dec 2006 13:09:24 +0000 (13:09 +0000)
commit85aef79f75e6be8e8a8d7a1111f6110b98a609ca
tree664d4031f261d73571b0dab79f7caeb6cbda1f05
parentbbea461bd91a323cd5e4d537c7362abc7fe591e2
re PR middle-end/30198 (__real / __imag cexpi (x) can be folded to cos (x) / sin (x))

2006-12-14  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/30198
* fold-const.c (fold_unary): Fold REALPART_EXPR of cexpi to cos.
Fold IMAGPART_EXPR of cexpi to sin.

* gcc.dg/builtins-60.c: New testcase.

From-SVN: r119858
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtins-60.c [new file with mode: 0644]