Fix ctlz and cttz. llvm definition requires them to return number of bits in of the...
authorEvan Cheng <evan.cheng@apple.com>
Fri, 14 Dec 2007 08:30:15 +0000 (08:30 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 14 Dec 2007 08:30:15 +0000 (08:30 +0000)
commit152804e9c1a9fad358a7a5298cd01d4af0f8cf47
tree076b34df1935df25432ed1b8b3c80a6e2682ed4f
parent7c07aebd19ea07c6219c36c9e96a5d7a6052ba95
Fix ctlz and cttz. llvm definition requires them to return number of bits in of the src type when value is zero.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45029 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86InstrInfo.td
test/CodeGen/X86/clz.ll