match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
authorRichard Biener <rguenther@suse.de>
Wed, 5 Oct 2016 11:34:58 +0000 (11:34 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 5 Oct 2016 11:34:58 +0000 (11:34 +0000)
commiteeb57981e2d639f144ee6264fdc2bf6f23f8508b
tree67b02b7097aa4094b477c7958e05d2e179671a19
parenta5382f1c6b729ce1cce0c76db8139f4dbe3caae7
match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.

2016-10-05  Richard Biener  <rguenther@suse.de>

* match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.

* gcc.dg/fold-copysign-1.c: New testcase.

From-SVN: r240775
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-copysign-1.c [new file with mode: 0644]