re PR tree-optimization/78720 (Illegal instruction in generated code)
authorJakub Jelinek <jakub@redhat.com>
Sat, 10 Dec 2016 12:06:12 +0000 (13:06 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 10 Dec 2016 12:06:12 +0000 (13:06 +0100)
commitc0140e3c5d3f3b8090e8c21ad530a8986525eb76
tree1c3ee7a1e61c83a5cfcca91584530a3b01495645
parent2d4102c5cbe74a27b7ec64e3d90404e3d3707b6f
re PR tree-optimization/78720 (Illegal instruction in generated code)

PR tree-optimization/78720
* match.pd (A < 0 ? C : 0): Only optimize for signed A.  If shift
is negative, sign extend to @1's type and than AND with C.

* gcc.c-torture/execute/pr78720.c: New test.

Co-Authored-By: Marc Glisse <marc.glisse@inria.fr>
From-SVN: r243516
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr78720.c [new file with mode: 0644]