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

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Oct 13 07:28:46 2017
New Revision: 253709

URL: https://gcc.gnu.org/viewcvs?rev=253709&root=gcc&view=rev
Log:
        PR target/82498
        * fold-const.c (fold_binary_loc) <bit_rotate>: Code cleanups,
        instead of handling MINUS_EXPR twice (once for each argument),
        canonicalize operand order and handle just once, use rtype where
        possible.  Handle (A << B) | (A >> (-B & (Z - 1))).

        * gcc.dg/tree-ssa/pr82498.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr82498.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to