Fix fall outs from my recent change on how carry bit is modeled during isel.
authorEvan Cheng <evan.cheng@apple.com>
Tue, 6 Sep 2011 18:52:20 +0000 (18:52 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 6 Sep 2011 18:52:20 +0000 (18:52 +0000)
commit4a51708448e8958d8d1a375c055f1b98c8e20926
treea7e1c8d3d5e7ef09e6095ffd7630d8a3e4fb944f
parent2048c379dd9e080c3e1bb0c93636da9564d8772c
Fix fall outs from my recent change on how carry bit is modeled during isel.
Now the 'S' instructions, e.g. ADDS, treat S bit as optional operand as well.
Also fix isel hook to correctly set the optional operand.
rdar://10073745

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