re PR rtl-optimization/80501 (Wrong code w/ a signed char, a shift, and a conversion...
authorJakub Jelinek <jakub@redhat.com>
Tue, 25 Apr 2017 07:28:43 +0000 (09:28 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 25 Apr 2017 07:28:43 +0000 (09:28 +0200)
commitba5d69f3f27f4e30f95d658cf36f5d2e1debf09e
treecea421db7b2efec7beac4958f77bce491de8d185
parent392594621391ab6dd6f6ccd4ad8a77b883c84a5b
re PR rtl-optimization/80501 (Wrong code w/ a signed char, a shift, and a conversion to int)

PR rtl-optimization/80501
* combine.c (make_compound_operation_int): Set subreg_code to SET
even for AND with mask of the sign bit of mode.

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

From-SVN: r247128
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr80501.c [new file with mode: 0644]