re PR middle-end/71078 (x/abs(x) -> sign(1.0,x))
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
Wed, 27 Jul 2016 15:09:10 +0000 (15:09 +0000)
committerPrathamesh Kulkarni <prathamesh3492@gcc.gnu.org>
Wed, 27 Jul 2016 15:09:10 +0000 (15:09 +0000)
commit8c6961cab006c59be0e4632b21e829c9b3fa9a50
tree5b760477f103aff90ce4176e8d8ee2085e644d87
parent81a12b7606c58a7d6bea3151be426ef3e91b45ea
re PR middle-end/71078 (x/abs(x) -> sign(1.0,x))

2016-07-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

PR middle-end/71078
* match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.

testsuite/
* gcc.dg/tree-ssa/pr71078-1.c: New test-case.
* gcc.dg/tree-ssa/pr71078-2.c: Likewise.
* gcc.dg/tree-ssa/pr71078-3.c: Likewise.

From-SVN: r238787
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr71078-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr71078-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr71078-3.c [new file with mode: 0644]