re PR rtl-optimization/80385 (Segfault in commutative_operand_precedence() rtlanal...
authorJakub Jelinek <jakub@redhat.com>
Tue, 11 Apr 2017 17:19:56 +0000 (19:19 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 11 Apr 2017 17:19:56 +0000 (19:19 +0200)
commit8585103f053ef26a5939ec7c3a08ad77f70d2c3c
treed8c8096f0932ccc2f3c7ac4ddb1d3230bfa9f602
parentfbc698e0f4c35b3d16127682636bd141fad1d369
re PR rtl-optimization/80385 (Segfault in commutative_operand_precedence() rtlanal.c:3373)

PR rtl-optimization/80385
* simplify-rtx.c (simplify_unary_operation_1): Don't transform
(not (neg X)) into (plus X -1) for complex or non-integral modes.

* g++.dg/opt/pr80385.C: New test.

From-SVN: r246850
gcc/ChangeLog
gcc/simplify-rtx.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr80385.C [new file with mode: 0644]