ARM/Thumb2: Fix a misselect in getARMCmp, when attempting to adjust a signed
authorDaniel Dunbar <daniel@zuster.org>
Wed, 25 Aug 2010 16:58:05 +0000 (16:58 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 25 Aug 2010 16:58:05 +0000 (16:58 +0000)
commit3cc3283fcbb90924196cc38ee5977b35c4ee28b5
tree724550bcbc6d879dd99793439f657154175cc4f5
parent0a0073daab2c85b958566f0e84d59cb89585fc45
ARM/Thumb2: Fix a misselect in getARMCmp, when attempting to adjust a signed
comparison that would overflow.
 - The other under/overflow cases can't actually happen because the immediates
   which would trigger them are legal (so we don't enter this code), but
   adjusted the style to make it clear the transform is always valid.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112053 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelLowering.cpp
test/CodeGen/Thumb2/thumb2-cmp.ll