PR16490: fix a crash in ARMDAGToDAGISel::SelectInlineAsm.
authorJoey Gouly <joey.gouly@arm.com>
Fri, 5 Jul 2013 10:19:40 +0000 (10:19 +0000)
committerJoey Gouly <joey.gouly@arm.com>
Fri, 5 Jul 2013 10:19:40 +0000 (10:19 +0000)
commit00d9fe2de7f0b8f9d1ea19ae30cc78b1a1e1fb92
treefe46d475695f7fcf44374bb1058732ad5795ab91
parent24663f69cc98545b32d2eeeed1da887e7910e2f7
PR16490: fix a crash in ARMDAGToDAGISel::SelectInlineAsm.

In the SelectionDAG immediate operands to inline asm are constructed as
two separate operands. The first is a constant of value InlineAsm::Kind_Imm
and the second is a constant with the value of the immediate.

In ARMDAGToDAGISel::SelectInlineAsm, if we reach an operand of Kind_Imm we
should skip over the next operand too.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185688 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelDAGToDAG.cpp
test/CodeGen/ARM/arm-modifier.ll