* match.pd: Add new pattern:
commite7a6ef612a3e48068b6c76ff33442c733e37766b
authoramker <amker@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Dec 2016 14:13:11 +0000 (2 14:13 +0000)
committeramker <amker@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Dec 2016 14:13:11 +0000 (2 14:13 +0000)
treecdfa44848ffd774d45ea67c233edfb0982bdf3d9
parentb85c95b19c7fed12b1284dd0942756c4d9aaf75d
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@243180 138bc75d-0d04-0410-961f-82ee72b054a4
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]