fold-const.c (fold_binary_loc): Move ~X | X folding ...
authorMarek Polacek <polacek@redhat.com>
Tue, 30 Jun 2015 09:02:00 +0000 (09:02 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 30 Jun 2015 09:02:00 +0000 (09:02 +0000)
commita4398a300ed00d842f9786d529a7a4b0fce6e634
tree58346bd90053e6a614e0e37ed3fed21fc9b01ece
parent582554e3bc1509b6ddc407004f97e3f756bcedf5
fold-const.c (fold_binary_loc): Move ~X | X folding ...

* fold-const.c (fold_binary_loc): Move ~X | X folding ...
* match.pd: ... here.

* gcc.dg/fold-ior-2.c: New test.

From-SVN: r225164
gcc/ChangeLog
gcc/fold-const.c
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-ior-2.c [new file with mode: 0644]