For unsigned 8-bit division. Use movzbw to set the lower 8 bits of AX while
authorEvan Cheng <evan.cheng@apple.com>
Fri, 17 Nov 2006 22:10:14 +0000 (22:10 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 17 Nov 2006 22:10:14 +0000 (22:10 +0000)
commitb1409ce7ba3cea5e75fd205d4c037638d93cfeaf
tree38d2183476194d183a5808f3c6df6dce7045c932
parent9dea41d9e1c9e288630db503668468560aa4286e
For unsigned 8-bit division. Use movzbw to set the lower 8 bits of AX while
clearing the upper 8-bits instead of issuing two instructions. This also
eliminates the need to target the AH register which can be problematic on
x86-64.

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