Fix the remaining MUL8 and DIV8 to define AX instead of AL,AH.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 4 Mar 2010 20:42:07 +0000 (20:42 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 4 Mar 2010 20:42:07 +0000 (20:42 +0000)
commit3cfe01072c460ea2a8f80b99b9a77699bf6441d6
tree303c6f966a5b78711ae4c45f49c998159c37a747
parent0ef701e6ae816b0360e0a66e8b815ff875fe2a32
Fix the remaining MUL8 and DIV8 to define AX instead of AL,AH.

These instructions technically define AL,AH, but a trick in X86ISelDAGToDAG
reads AX in order to avoid reading AH with a REX instruction.

Fix PR6489.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97742 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrInfo.td
test/CodeGen/X86/2010-03-04-Mul8Bug.ll [new file with mode: 0644]