re PR tree-optimization/24964 (Does not optimise abs(x)**2 to x**2)
authorRoger Sayle <roger@eyesopen.com>
Mon, 29 May 2006 16:22:05 +0000 (16:22 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Mon, 29 May 2006 16:22:05 +0000 (16:22 +0000)
commit1753331b5bb8a14b709916450c93c98c2e2a007b
tree978c2831d92b849c43dacb024987911ecab7ea4d
parent06ac89d1ca5a07462804d35fff86331f9f61eae4
re PR tree-optimization/24964 (Does not optimise abs(x)**2 to x**2)

PR tree-optimization/24964
* simplify-rtx.c (simplify_binary_operation_1): Add function comment.
<MULT>: Minor clean-up.  Don't convert x*-1.0 into -x if we honor
signaling NaNs.  Optimize -x*-x as x*x for all float modes, and
abs(x)*abs(x) as x*x for scalar floating point modes.

* gcc.target/i386/387-10.c: New test case.

From-SVN: r114206
gcc/ChangeLog
gcc/simplify-rtx.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/387-10.c [new file with mode: 0644]