[Bug rtl-optimization/68376] [4.9/5/6 Regression] wrong code at -O1 and above on x86_64-linux-gnu

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Nov 19 08:54:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68376

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Nov 19 08:53:52 2015
New Revision: 230597

URL: https://gcc.gnu.org/viewcvs?rev=230597&root=gcc&view=rev
Log:
        PR rtl-optimization/68376
        * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
        encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.

        * gcc.c-torture/execute/pr68376-1.c: New test.
        * gcc.c-torture/execute/pr68376-2.c: New test.

Added:
    branches/gcc-5-branch/gcc/testsuite/gcc.c-torture/execute/pr68376-1.c
    branches/gcc-5-branch/gcc/testsuite/gcc.c-torture/execute/pr68376-2.c
Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/ifcvt.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list