mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
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
This commit is contained in:
@@ -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]) {
|
||||
|
Reference in New Issue
Block a user