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

--- Comment #19 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Dec  7 22:58:33 2016
New Revision: 243411

URL: https://gcc.gnu.org/viewcvs?rev=243411&root=gcc&view=rev
Log:
        Backported from mainline
        2016-11-28  Jakub Jelinek  <ja...@redhat.com>

        PR rtl-optimization/78546
        * simplify-rtx.c (neg_const_int): When negating most negative
        number in mode wider than HOST_BITS_PER_WIDE_INT, use
        simplify_const_unary_operation to produce CONST_DOUBLE or
        CONST_WIDE_INT.
        (simplify_plus_minus): Hanlde the case where neg_const_int
        doesn't return a CONST_INT.

        * gcc.dg/torture/pr78546-1.c: New test.
        * gcc.dg/torture/pr78546-2.c: New test.

Added:
    branches/gcc-6-branch/gcc/testsuite/gcc.dg/torture/pr78546-1.c
    branches/gcc-6-branch/gcc/testsuite/gcc.dg/torture/pr78546-2.c
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/simplify-rtx.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog

Reply via email to