PR target/86314
commitdcf725987fa221d5f9e941a21ec75e834acb6666
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Jun 2018 11:35:52 +0000 (26 11:35 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Jun 2018 11:35:52 +0000 (26 11:35 +0000)
treec0bd05538b2868f34434c73cfba6ec1b50421d2b
parentf626db6c9d09b379d76b49123c53739599d8403e
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@262141 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr86314.c [new file with mode: 0644]