When converting from 64 to 32-bits, use the actual number of words to
authorReid Spencer <rspencer@reidspencer.com>
Thu, 22 Feb 2007 00:58:45 +0000 (00:58 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Thu, 22 Feb 2007 00:58:45 +0000 (00:58 +0000)
commit15aab8a723f9a316fe387af22a21b2a3abbaa066
tree32be947bf2f4bc7ab2aa113f9a043e59a41aa9d2
parentab2b2c827c4a60e558efaea3bfeb1ebd13b5985b
When converting from 64 to 32-bits, use the actual number of words to
extract the value, not the number of words implied by the active bits.
This fixes numerous, but not all divide bugs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34484 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/APInt.cpp