[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 #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Apr 25 07:28:43 2017
New Revision: 247128
URL: https://gcc.gnu.org/viewcvs?rev=247128&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:
trunk/gcc/testsuite/gcc.c-torture/execute/pr80501.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/combine.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list