OSDN Git Service

2007-10-08 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Oct 2007 14:44:14 +0000 (14:44 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Oct 2007 14:44:14 +0000 (14:44 +0000)
commit05e1595b7394e06e0e85c0f392f3840e682b447a
treefed6dbf121ef1138a33f97ed54004b0db8ff84e0
parente3d2159eb818033b6e7590ce894cc8f964f3bcd0
2007-10-08  Richard Guenther  <rguenther@suse.de>

PR middle-end/33691
PR middle-end/33694
PR middle-end/33696
* fold-const.c (fold_binary): Use the correct types when
folding (A | CST1) & CST2 to (A & CST2) | (CST1 & CST2).
(fold_binary): Use the correct types when folding
(-A) - B to (-B) - A.
(fold_unary): Use the correct types when folding ~(X).

* gcc.dg/pr33691.c: New testcase.
        * gcc.dg/pr33694.c: Likewise.
        * gcc.dg/pr33696.c: Likewise.

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