match.pd (X - (X / Y) * Y): Use convert1 and convert2.
authorMarek Polacek <polacek@redhat.com>
Tue, 30 Jun 2015 16:35:16 +0000 (16:35 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 30 Jun 2015 16:35:16 +0000 (16:35 +0000)
commitd3bc1d1b65a18177f6baacda0251b4777a2794f4
tree9c5d36cde1742c9db75b3a2bdbaabd50eb9dc5ff
parentb451c27117636e7ca6f09fc4ac86a3623decf8fa
match.pd (X - (X / Y) * Y): Use convert1 and convert2.

* match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
both operands of the resulting expression.

* gcc.dg/fold-minus-6.c: New test.

From-SVN: r225195
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-minus-6.c [new file with mode: 0644]