match.pd (~x | x): Don't use tree_nop_conversion_p.
authorMarek Polacek <polacek@redhat.com>
Tue, 30 Jun 2015 16:36:44 +0000 (16:36 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 30 Jun 2015 16:36:44 +0000 (16:36 +0000)
commit3db55b2b6d83f9d3406af133e42db688b9379395
tree5b8dce2e677b5633bbb88ff76efadcddc0decb73
parentd3bc1d1b65a18177f6baacda0251b4777a2794f4
match.pd (~x | x): Don't use tree_nop_conversion_p.

* match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
the final expression with the operand's type and then convert
it to the type of the expression.

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

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