match.pd: Add new pattern: (cond (cmp (convert?
authorBin Cheng <bin.cheng@arm.com>
Fri, 2 Dec 2016 14:13:11 +0000 (14:13 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Fri, 2 Dec 2016 14:13:11 +0000 (14:13 +0000)
commit714445ae04640bc096693623fb805bcf14148663
treecdfa44848ffd774d45ea67c233edfb0982bdf3d9
parentd313d52cd5fff9374f01967fb7964b6633df219c
match.pd: Add new pattern: (cond (cmp (convert?

* match.pd: Add new pattern:
(cond (cmp (convert? x) c1) (op x c2) c3) -> (op (minmax x c1) c2).
gcc/testsuite
* gcc.dg/fold-bopcond-1.c: New test.
* gcc.dg/fold-bopcond-2.c: New test.

From-SVN: r243180
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-bopcond-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/fold-bopcond-2.c [new file with mode: 0644]