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/63641] [5 Regression] Invalid shift leads to incorrect code on 32-bit system


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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Oct 25 20:21:47 2014
New Revision: 216693

URL: https://gcc.gnu.org/viewcvs?rev=216693&root=gcc&view=rev
Log:
    PR tree-optimization/63641
    * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
    to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).

    * gcc.c-torture/execute/pr63641.c: New test.

Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/pr63641.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-reassoc.c


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