diff options
author | Joey Gouly <joey.gouly@arm.com> | 2013-07-08 19:52:51 +0000 |
---|---|---|
committer | Joey Gouly <joey.gouly@arm.com> | 2013-07-08 19:52:51 +0000 |
commit | 881b0b5c77ec3f6849e32b7763b6c75057b81501 (patch) | |
tree | 5550bf995be1440c509f03ef5aaf9e58f3b3e64e | |
parent | f856249d496663b72b9eac37cdabb52932abd0e0 (diff) | |
download | external_llvm-881b0b5c77ec3f6849e32b7763b6c75057b81501.zip external_llvm-881b0b5c77ec3f6849e32b7763b6c75057b81501.tar.gz external_llvm-881b0b5c77ec3f6849e32b7763b6c75057b81501.tar.bz2 |
Add a comment to this change, requested by Eric Christopher.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185853 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/ARM/ARMISelDAGToDAG.cpp | 4 | ||||
-rw-r--r-- | test/CodeGen/ARM/arm-modifier.ll | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMISelDAGToDAG.cpp b/lib/Target/ARM/ARMISelDAGToDAG.cpp index da0fe2c..4eda5dc 100644 --- a/lib/Target/ARM/ARMISelDAGToDAG.cpp +++ b/lib/Target/ARM/ARMISelDAGToDAG.cpp @@ -3491,6 +3491,10 @@ SDNode *ARMDAGToDAGISel::SelectInlineAsm(SDNode *N){ else continue; + // Immediate operands to inline asm in the SelectionDAG are modeled with + // two operands. The first is a constant of value InlineAsm::Kind_Imm, and + // the second is a constant with the value of the immediate. If we get here + // and we have a Kind_Imm, skip the next operand, and continue. if (Kind == InlineAsm::Kind_Imm) { SDValue op = N->getOperand(++i); AsmNodeOperands.push_back(op); diff --git a/test/CodeGen/ARM/arm-modifier.ll b/test/CodeGen/ARM/arm-modifier.ll index e6358d4..a364793 100644 --- a/test/CodeGen/ARM/arm-modifier.ll +++ b/test/CodeGen/ARM/arm-modifier.ll @@ -66,6 +66,7 @@ entry: ret i64 %0 } +; PR16490 define void @f5(i64 %__pu_val) { call void asm sideeffect "$1", "r,i"(i64 %__pu_val, i32 -14) ret void |