[Bug rtl-optimization/80501] [6/7/8 Regression] Wrong code w/ a signed char, a shift, and a conversion to int
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Apr 25 07:29:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80501
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Apr 25 07:29:21 2017
New Revision: 247129
URL: https://gcc.gnu.org/viewcvs?rev=247129&root=gcc&view=rev
Log:
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-7-branch/gcc/testsuite/gcc.c-torture/execute/pr80501.c
Modified:
branches/gcc-7-branch/gcc/ChangeLog
branches/gcc-7-branch/gcc/combine.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list