divb / mulb outputs to ah. Under x86-64 it's not legal to read ah if the instruction...
authorEvan Cheng <evan.cheng@apple.com>
Thu, 9 Aug 2007 21:59:35 +0000 (21:59 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 9 Aug 2007 21:59:35 +0000 (21:59 +0000)
commitf7ef26e7012fdf0ec6366489d269997f2ed1ba97
tree6885604b79c658bc26cbd0d7515f30cb09628fae
parentf2369f20427d0e74c36b1ee90ae7892b5eb55b95
divb / mulb outputs to ah. Under x86-64 it's not legal to read ah if the instruction requires a rex prefix (i.e. outputs to r8b, etc.). So issue shift right by 8 on AX and then truncate it to 8 bits instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40972 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/README-X86-64.txt
lib/Target/X86/X86ISelDAGToDAG.cpp