re PR tree-optimization/93118 (>>32<<32 is not always converted into &~0ffffffffull...
authorJakub Jelinek <jakub@redhat.com>
Tue, 7 Jan 2020 10:03:07 +0000 (11:03 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 7 Jan 2020 10:03:07 +0000 (11:03 +0100)
commitf26916c2acdda19e36e57fff97b296897ebcba76
treedf16e28845517b34758987ce1960774bccac998b
parent5c4177c5087194f920413896b1a382f807c1d0f2
re PR tree-optimization/93118 (>>32<<32 is not always converted into &~0ffffffffull at the tree level)

PR tree-optimization/93118
* match.pd ((x >> c) << c -> x & (-1<<c)): Add nop_convert?.  Add new
simplifier with two intermediate conversions.

* gcc.dg/tree-ssa/pr93118.c: New test.

From-SVN: r279950
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr93118.c [new file with mode: 0644]