]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR rtl-optimization/56494
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Mar 2013 06:04:14 +0000 (06:04 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Mar 2013 06:04:14 +0000 (06:04 +0000)
commitbdcf717b3d7666a831504f0e80f85e7f096a0c26
tree19a88c3e3d27c85213863432bf8347f0776184b1
parent862c193442b547addfd5c82db5d486cc3fce0805
PR rtl-optimization/56494
* simplify-rtx.c (simplify_truncation): If C is narrower than A,
optimize (truncate:A (subreg:B (truncate:C X) 0)) into
(subreg:A (truncate:C X) 0) instead of (truncate:A X).

* gcc.dg/pr56494.c: New test.

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