This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r253709 - in /trunk/gcc: ChangeLog fold-const.c...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 13 Oct 2017 07:28:47 -0000
- Subject: r253709 - in /trunk/gcc: ChangeLog fold-const.c...
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