mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +00:00
Fix CodeGen/Generic/2007-04-27-LargeMemObject.ll and
CodeGen/Generic/2007-04-27-InlineAsm-X-Dest.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36534 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
15c928640d
commit
f2f3cd5129
@ -3210,16 +3210,22 @@ void SelectionDAGLowering::visitInlineAsm(CallInst &I) {
|
||||
switch (Constraints[i].Type) {
|
||||
case InlineAsm::isOutput:
|
||||
if (!Constraints[i].isIndirect) {
|
||||
// The return value of the call is this value.
|
||||
assert(I.getType() != Type::VoidTy && "Bad inline asm!");
|
||||
OpVT = TLI.getValueType(I.getType());
|
||||
} else {
|
||||
const Type *OpTy = I.getOperand(OpNum)->getType();
|
||||
OpVT = TLI.getValueType(cast<PointerType>(OpTy)->getElementType());
|
||||
OpVT = TLI.getValueType(cast<PointerType>(OpTy)->getElementType(),true);
|
||||
OpNum++; // Consumes a call operand.
|
||||
}
|
||||
break;
|
||||
case InlineAsm::isInput:
|
||||
OpVT = TLI.getValueType(I.getOperand(OpNum)->getType());
|
||||
if (!Constraints[i].isIndirect) {
|
||||
OpVT = TLI.getValueType(I.getOperand(OpNum)->getType());
|
||||
} else {
|
||||
const Type *OpTy = I.getOperand(OpNum)->getType();
|
||||
OpVT = TLI.getValueType(cast<PointerType>(OpTy)->getElementType(),true);
|
||||
}
|
||||
OpNum++; // Consumes a call operand.
|
||||
break;
|
||||
case InlineAsm::isClobber:
|
||||
@ -3275,8 +3281,8 @@ void SelectionDAGLowering::visitInlineAsm(CallInst &I) {
|
||||
if (ConstraintCode.size() == 1) // not a physreg name.
|
||||
CTy = TLI.getConstraintType(ConstraintCode);
|
||||
|
||||
if (CTy == TargetLowering::C_Memory) {
|
||||
// Memory output.
|
||||
if (CTy != TargetLowering::C_RegisterClass) {
|
||||
// Memory output, or 'other' output (e.g. 'X' constraint).
|
||||
SDOperand InOperandVal = getValue(I.getOperand(OpNum));
|
||||
|
||||
// Check that the operand (the address to store to) isn't a float.
|
||||
|
Loading…
x
Reference in New Issue
Block a user