[Bug target/86314] [7/8/9 Regression] GCC 7.x and 8.x zero out "eax" before using "rax" in "lock bts"
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jun 26 11:55:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86314
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Jun 26 11:54:29 2018
New Revision: 262144
URL: https://gcc.gnu.org/viewcvs?rev=262144&root=gcc&view=rev
Log:
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.
Added:
branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr86314.c
Modified:
branches/gcc-7-branch/gcc/ChangeLog
branches/gcc-7-branch/gcc/config/i386/i386.md
branches/gcc-7-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list