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 rtl-optimization/70429] Wrong code with -O1.


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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Mar 29 18:49:00 2016
New Revision: 234531

URL: https://gcc.gnu.org/viewcvs?rev=234531&root=gcc&view=rev
Log:
        PR rtl-optimization/70429
        * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
        (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
        mode != result_mode.

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

Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/pr70429.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/combine.c
    trunk/gcc/testsuite/ChangeLog

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