CMOV_GR8 clobbers EFLAGS when its expansion involves an xor to set
authorDan Gohman <gohman@apple.com>
Sat, 29 Aug 2009 22:19:15 +0000 (22:19 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 29 Aug 2009 22:19:15 +0000 (22:19 +0000)
commit71a258c36bcf24be212afaca798f47346d9df77e
treee70bfd85cb7a095a498a4ba9fe6b328dbdf59f6a
parentac6f73a2e7115328fdd2c656a38f08d38b9dc87d
CMOV_GR8 clobbers EFLAGS when its expansion involves an xor to set
a register to 0. This fixes PR4814.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80445 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrInfo.td
test/CodeGen/X86/cmov-i8-eflags.ll [new file with mode: 0644]