match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)): New pattern.
authorBin Cheng <bin.cheng@arm.com>
Thu, 27 Oct 2016 08:31:01 +0000 (08:31 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Thu, 27 Oct 2016 08:31:01 +0000 (08:31 +0000)
commitad6e4ba8de6dc0efd62754164d432f9349beb25b
tree410ba71c2e4974725417983c0c6b57a9f4cdf81c
parentfe14572b1ae8dc408645a0c4ce1d043d44acece6
match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)): New pattern.

* match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
New pattern.

gcc/testsuite
* gcc.dg/fold-convmaxconv-1.c: New test.
* gcc.dg/fold-convminconv-1.c: New test.

From-SVN: r241612
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-convmaxconv-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/fold-convminconv-1.c [new file with mode: 0644]