2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
commit6a0d39d6bf477178efd8472c9d505df1ea213852
authorprathamesh3492 <prathamesh3492@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Oct 2016 08:48:43 +0000 (17 08:48 +0000)
committerprathamesh3492 <prathamesh3492@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Oct 2016 08:48:43 +0000 (17 08:48 +0000)
tree2f792ea3c5eed724349f041f4fc4bb764d9f5cdb
parent08d3e973b4d0d9630f15be4e1988126095fe3005
2016-10-17  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

PR tree-optimization/71636
* match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.

testsuite/
* gcc.dg/pr71636-1.c: New test-case.
* gcc.dg/pr71636-2.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@241229 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr71636-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr71636-2.c [new file with mode: 0644]