OSDN Git Service

PR rtl-optimization/49472
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 Jul 2011 18:53:56 +0000 (18:53 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 Jul 2011 18:53:56 +0000 (18:53 +0000)
commit0ed407e4eea0664d140ba9ef4ad22dde797c49c6
treeb9c8211932e2c4b13367e217f110ffc882b8f5cf
parent824651eba54ffd6c45d9f065d51adb1fe833d968
PR rtl-optimization/49472
* simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
negating MULT, negate the second operand instead of first.
(simplify_binary_operation_1) <case MULT>: If one operand is
a NEG and the other is MULT, don't attempt to optimize by
negation of the MULT operand if it only moves the NEG operation
around.

* gfortran.dg/pr49472.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175821 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/simplify-rtx.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr49472.f90 [new file with mode: 0644]