2007-10-08 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Oct 2007 15:23:49 +0000 (15:23 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Oct 2007 15:23:49 +0000 (15:23 +0000)
commit984e8eccb522dedfa43b948106d2508c2ed4b645
tree68d927f3aff3877ad0962683ab193ec9859c84fb
parent2605f523a5f1e362cae6701c4c11c031ea1259b5
2007-10-08  Richard Guenther  <rguenther@suse.de>

PR middle-end/33693
PR middle-end/33695
PR middle-end/33697
* fold-const.c (fold_binary): Use correct types in folding
of a * (1 << b) to (a << b).  Likewise for ~A & ~B to ~(A | B)
and building of RROTATE_EXPR.

* gcc.dg/pr33693.c: New testcase.
* gcc.dg/pr33695.c: Likewise.
* gcc.dg/pr33697.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129130 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr33693.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr33695.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr33697.c [new file with mode: 0644]