Move X==15-X to match.pd
commit7eb46067b709fc831b3b448f0d65d07f55f6fbfb
authorglisse <glisse@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 May 2017 11:05:55 +0000 (18 11:05 +0000)
committerglisse <glisse@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 May 2017 11:05:55 +0000 (18 11:05 +0000)
treebad2b7bb3b9a02a1e6c6b9b76e1d5f4956ef07ed
parent2823920b6a40bd460cf9947052f41cc189c56530
Move X==15-X to match.pd

2017-05-18  Marc Glisse  <marc.glisse@inria.fr>

* fold-const.c (fold_binary_loc): Move transformation...
* match.pd (C - X CMP X): ... here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@248193 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/match.pd