Thumb1 ADD/SUB SP instructions are predicable in Thumb2 mode.
authorJim Grosbach <grosbach@apple.com>
Wed, 24 Aug 2011 17:46:13 +0000 (17:46 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 24 Aug 2011 17:46:13 +0000 (17:46 +0000)
commit5b81584f7403ffdb9cc6babaaeb0411c080e0f81
tree6f24c77253dbee60cb277956807ca71d2ff707f7
parente234d02204e0e546c3555e7e894b8521d22a2121
Thumb1 ADD/SUB SP instructions are predicable in Thumb2 mode.

Add the predicate operand to the instructions. Update the back end
accordingly where the instructions are used. Restrict the SP operands
to actually only be SP, as otherwise these break assembly parsing for the
normal instruction variants.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138445 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMBaseRegisterInfo.cpp
lib/Target/ARM/ARMISelDAGToDAG.cpp
lib/Target/ARM/ARMInstrThumb.td
lib/Target/ARM/ARMRegisterInfo.td
lib/Target/ARM/Thumb1FrameLowering.cpp
lib/Target/ARM/Thumb1RegisterInfo.cpp
lib/Target/ARM/Thumb2InstrInfo.cpp
lib/Target/ARM/Thumb2SizeReduction.cpp
utils/TableGen/EDEmitter.cpp