Generalize -(-X) a little
authorMarc Glisse <marc.glisse@inria.fr>
Fri, 3 Nov 2017 16:23:57 +0000 (17:23 +0100)
committerMarc Glisse <glisse@gcc.gnu.org>
Fri, 3 Nov 2017 16:23:57 +0000 (16:23 +0000)
commit63626547937ea54b251ad9480b306d9f8e793a0c
tree1692ab4ed30efaec1e493cbcb059766808ce286a
parente641ee437f4134131e1d81a5f0e9415f3737d78b
Generalize -(-X) a little

2017-11-03  Marc Glisse  <marc.glisse@inria.fr>

gcc/
* match.pd (-(-A)): Rewrite.

gcc/testsuite/
* gcc.dg/tree-ssa/negneg-1.c: New file.
* gcc.dg/tree-ssa/negneg-2.c: Likewise.
* gcc.dg/tree-ssa/negneg-3.c: Likewise.
* gcc.dg/tree-ssa/negneg-4.c: Likewise.

From-SVN: r254382
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/negneg-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/negneg-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/negneg-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/negneg-4.c [new file with mode: 0644]