Fix a crash compiling 254.gap for Thumb2. The Thumb2 add/sub with 12-bit
authorBob Wilson <bob.wilson@apple.com>
Mon, 8 Mar 2010 22:56:15 +0000 (22:56 +0000)
committerBob Wilson <bob.wilson@apple.com>
Mon, 8 Mar 2010 22:56:15 +0000 (22:56 +0000)
commitf5fd499791bd65a31183324dabc5eefc201f9e2e
treec83c9ee067a32d02f7be00141e107f535c77a9f2
parent687fed3530366b03a9a6433df0c032247ab17d5b
Fix a crash compiling 254.gap for Thumb2.  The Thumb2 add/sub with 12-bit
immediate instructions cannot set the condition codes, so they do not have
the extra cc_out operand.  We hit an assertion during tail duplication
because the instruction being duplicated had more operands that expected.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98001 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrThumb2.td
lib/Target/ARM/Thumb2InstrInfo.cpp
test/CodeGen/Thumb2/2010-03-08-addi12-ccout.ll [new file with mode: 0644]