This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r197846 - 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, 12 Apr 2013 08:19:00 -0000
- Subject: r197846 - in /trunk/gcc: ChangeLog fold-const.c...
Author: jakub
Date: Fri Apr 12 08:18:59 2013
New Revision: 197846
URL: http://gcc.gnu.org/viewcvs?rev=197846&root=gcc&view=rev
Log:
PR tree-optimization/56918
PR tree-optimization/56920
* fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
use wide_mul_with_sign method.
* gcc.dg/vect/pr56918.c: New test.
* gcc.dg/vect/pr56920.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/vect/pr56918.c
trunk/gcc/testsuite/gcc.dg/vect/pr56920.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog