gcc/
commitb704209e652118309921f6971212efbb11ab4f33
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 May 2014 18:50:55 +0000 (26 18:50 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 May 2014 18:50:55 +0000 (26 18:50 +0000)
tree21a0a8b4063a6435c89c6ef18670302306d554e3
parentd754a1996dcee819033f27d6b3a32a63718c0ca2
gcc/
PR rtl-optimization/61222
* combine.c (simplify_shift_const_1): When moving a PLUS outside
the shift, truncate the PLUS operand to the result mode.

gcc/testsuite/
PR rtl-optimization/61222
* gcc.c-torture/compile/pr61222-1.c: New test.
* gcc.c-torture/compile/pr61222-2.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210945 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr61222-1.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/compile/pr61222-2.c [new file with mode: 0644]