https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80501
--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri May 5 21:56:08 2017 New Revision: 247703 URL: https://gcc.gnu.org/viewcvs?rev=247703&root=gcc&view=rev Log: Backported from mainline 2017-04-25 Jakub Jelinek <ja...@redhat.com> 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. Added: branches/gcc-6-branch/gcc/testsuite/gcc.c-torture/execute/pr80501.c Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/combine.c branches/gcc-6-branch/gcc/testsuite/ChangeLog