PR rtl-optimization/18928
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Dec 2004 23:49:28 +0000 (23:49 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Dec 2004 23:49:28 +0000 (23:49 +0000)
commit70fb5d1c4101fe7dab4f1a7d504ecb7102affe59
tree610abc1c82d439c98e13f70c11d153d2004220e4
parent78a289a921a5787579715c5d70fcd75c6f072a1b
PR rtl-optimization/18928
* simplify_rtx.c (plus_minus_operand_p): New function to encode
the test for suitable operands for calls to simplify_plus_minus.
Only allow (CONST (PLUS x y)) if both x and y are CONSTANT_P.
(simplify_binary_operation): Use plus_minus_operand_p.

* gcc.dg/pr18928-1.c: New test case.

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