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

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 10 22:29:00 GMT 2015


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

--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Dec 10 22:29:12 2015
New Revision: 231546

URL: https://gcc.gnu.org/viewcvs?rev=231546&root=gcc&view=rev
Log:
        PR rtl-optimization/68376
        PR rtl-optimization/68670
        * ifcvt.c (noce_try_abs): For one_cmpl allow < 0, >= 0
        or > -1 conditions regardless of negate, and disallow
        all other conditions.

        * gcc.c-torture/execute/pr68376-2.c (f5, f6, f7, f8): New
        tests.
        (main): Call them.
        * gcc.dg/pr68670-1.c: New test.
        * gcc.dg/pr68670-2.c: New test.

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


More information about the Gcc-bugs mailing list