re PR target/81300 (-fpeephole2 breaks __builtin_ia32_sbb_u64, _subborrow_u64 on...
authorUros Bizjak <uros@gcc.gnu.org>
Tue, 4 Jul 2017 20:52:32 +0000 (22:52 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Tue, 4 Jul 2017 20:52:32 +0000 (22:52 +0200)
commit45bb7d590759d210669bcf33487143e266f2112b
tree983a94bcdbbc0cffaf210bdc722b4963586bdf82
parent1fcfac88dec24a5ae005a82b1aa85e0e4291a81e
re PR target/81300 (-fpeephole2 breaks __builtin_ia32_sbb_u64, _subborrow_u64 on AMD64)

2017-07-04  Uros Bizjak  <ubizjak@gmail.com>

PR target/81300
* config/i386/i386.md (setcc + movzbl/and to xor + setcc peepholes):
Require dead FLAGS_REG at the beginning of a peephole.

testsuite/ChangeLog:

PR target/81300
* gcc.target/i386/pr81300.c: New test.

From-SVN: r249977
gcc/ChangeLog
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr81300.c [new file with mode: 0644]