Fix a miscompilation caused by a typo. When turning a adde with negative value
authorEvan Cheng <evan.cheng@apple.com>
Wed, 24 Oct 2012 19:53:01 +0000 (19:53 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 24 Oct 2012 19:53:01 +0000 (19:53 +0000)
commitd258eb3ec5cc5c9a28d3a8cd80241c9df24ce3a1
tree1c59542feb0697620542e270f32eb637f28e87cf
parent8c65549318950ff3fc1cb3d7a73fb50c688c78a5
Fix a miscompilation caused by a typo. When turning a adde with negative value
into a sbc with a positive number, the immediate should be complemented, not
negated. Also added a missing pattern for ARM codegen.

rdar://12559385

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166613 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrInfo.td
lib/Target/ARM/ARMInstrThumb2.td
test/CodeGen/ARM/carry.ll
test/CodeGen/Thumb2/carry.ll