re PR rtl-optimization/89634 (gmp-ecm miscompilation on s390x with -march=zEC12 ...
authorJakub Jelinek <jakub@redhat.com>
Sat, 9 Mar 2019 08:25:48 +0000 (09:25 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 9 Mar 2019 08:25:48 +0000 (09:25 +0100)
commit23c6448136e9a8aa7dbf7a6d2a76efbe8edf1681
treea6b9893340ec96cc932e5b81f252f33673f0e9db
parentee973155b2fd00dfe0ef6a3563c9623512f6632e
re PR rtl-optimization/89634 (gmp-ecm miscompilation on s390x with -march=zEC12 -m64 -O2)

PR rtl-optimization/89634
* cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
are modified in BB_END (e->src) instruction.

* gcc.c-torture/execute/pr89634.c: New test.

From-SVN: r269522
gcc/ChangeLog
gcc/cfgcleanup.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr89634.c [new file with mode: 0644]