combine: Take known zero bits into account when checking extraction.
authorDominik Vogt <vogt@linux.vnet.ibm.com>
Fri, 27 May 2016 11:38:59 +0000 (11:38 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Fri, 27 May 2016 11:38:59 +0000 (11:38 +0000)
commit6a813c9659aec29ba18173f5d070c846a0919d60
tree0fff9490dbeec47e35828223b26554340ab7390f
parent4bc72f35f3322302a0672165bc9dc90ca0fc4b97
combine: Take known zero bits into account when checking extraction.

gcc/ChangeLog:

* combine.c (make_compound_operation): Take known zero bits into
account when checking for possible zero_extend.

gcc/testsuite/ChangeLog:

* gcc.dg/zero_bits_compound-1.c: New test.
* gcc.dg/zero_bits_compound-2.c: New test.

From-SVN: r236813
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/zero_bits_compound-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/zero_bits_compound-2.c [new file with mode: 0644]