aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-03-20 18:03:34 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-03-20 18:03:34 +0000
commit9216740fcc17e9442241a19034e9c1ad9cd65bc2 (patch)
tree5e9badf081c1c2df5cee211ca2efe5451a07faf4 /lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
parente87847abc0fba2ead274d11f2862c4bd60e78c14 (diff)
downloadexternal_llvm-9216740fcc17e9442241a19034e9c1ad9cd65bc2.zip
external_llvm-9216740fcc17e9442241a19034e9c1ad9cd65bc2.tar.gz
external_llvm-9216740fcc17e9442241a19034e9c1ad9cd65bc2.tar.bz2
For inline asm output operand that matches an input. Encode the input operand index in the high bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67387 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index fd08ee6..888eeda 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -1974,7 +1974,8 @@ SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) {
bool HasInFlag = Ops.back().getValueType() == MVT::Flag;
for (unsigned i = 2, e = Ops.size()-HasInFlag; i < e; ) {
- unsigned NumVals = cast<ConstantSDNode>(Ops[i])->getZExtValue() >> 3;
+ unsigned NumVals = InlineAsm::
+ getNumOperandRegisters(cast<ConstantSDNode>(Ops[i])->getZExtValue());
for (++i; NumVals; ++i, --NumVals) {
SDValue Op = LegalizeOp(Ops[i]);
if (Op != Ops[i]) {