]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR target/86314 (GCC 7.x and 8.x zero out "eax" before using "rax" in "lock bts")
authorJakub Jelinek <jakub@redhat.com>
Tue, 26 Jun 2018 11:54:29 +0000 (13:54 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 26 Jun 2018 11:54:29 +0000 (13:54 +0200)
commita8b7129f6ad7ce052e661eee4dca9345c0a9675a
tree1b2fa43af9b5e65558ecef1b9a51f043e5004d03
parentb99c6132526cdbf8392d81fe2ef8a7e0caa5f529
re PR target/86314 (GCC 7.x and 8.x zero out "eax" before using "rax" in "lock bts")

PR target/86314
* config/i386/i386.md (setcc + movzbl to xor + setcc peephole2s):
Check reg_overlap_mentioned_p in addition to reg_set_p with the same
operands.

* gcc.dg/pr86314.c: New test.

From-SVN: r262144
gcc/ChangeLog
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr86314.c [new file with mode: 0644]