This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/68835] [5/6 Regression] ICE in set_value_range, at tree-vrp.c:387, with __int128 bit field


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

--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Dec 17 13:52:25 2015
New Revision: 231757

URL: https://gcc.gnu.org/viewcvs?rev=231757&root=gcc&view=rev
Log:
        PR tree-optimization/68835
        * tree.c (get_int_cst_ext_nunits): Return
        cst.get_precision () / HOST_BITS_PER_WIDE_INT + 1
        for all unsigned wi::neg_p (cst) constants.
        (build_new_int_cst): If cst.get_precision is not a multiple
        of HOST_BITS_PER_WIDE_INT, zero extend -1 to the precision
        % HOST_BITS_PER_WIDE_INT.

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

Added:
    trunk/gcc/testsuite/gcc.dg/pr68835-1.c
    trunk/gcc/testsuite/gcc.dg/pr68835-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree.c

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]