match.pd (max:c @0 (plus@2 @0 INTEGER_CST@1)): New Pattern.
authorNaveen H.S <naveenh@gcc.gnu.org>
Wed, 21 Dec 2016 08:37:47 +0000 (08:37 +0000)
committerNaveen H.S <naveenh@gcc.gnu.org>
Wed, 21 Dec 2016 08:37:47 +0000 (08:37 +0000)
commit182f37c9ac733391323494e5f0ee394a0a065b27
treece38343c14f2c6bf2a64434cb40493a12d00cd0d
parent899614c10b3e214e0a5f9699565e83ba1627213b
match.pd (max:c @0 (plus@2 @0 INTEGER_CST@1)): New Pattern.

2016-12-22  Andrew Pinski  <apinski@cavium.com>
    Naveen H.S <Naveen.Hurugalawadi@cavium.com>

gcc
        * match.pd (max:c @0 (plus@2 @0 INTEGER_CST@1)): New Pattern.
(min:c @0 (plus@2 @0 INTEGER_CST@1)) : New Pattern.
gcc/testsuite
* gcc.dg/max.c: New Testcase.
* gcc.dg/min.c: New Testcase.

From-SVN: r243838
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/max.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/min.c [new file with mode: 0644]