mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-12 01:41:37 +00:00
implement support for floating point constants used as inline asm memory operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35033 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
71b91ac76f
commit
6dfc6806bf
@ -2882,9 +2882,14 @@ void SelectionDAGLowering::visitInlineAsm(CallInst &I) {
|
||||
} else if (CTy == TargetLowering::C_Memory) {
|
||||
// Memory input.
|
||||
|
||||
// Check that the operand isn't a float.
|
||||
// If the operand is a float, spill to a constant pool entry to get its
|
||||
// address.
|
||||
if (ConstantFP *Val = dyn_cast<ConstantFP>(I.getOperand(OpNum-1)))
|
||||
InOperandVal = DAG.getConstantPool(Val, TLI.getPointerTy());
|
||||
|
||||
if (!MVT::isInteger(InOperandVal.getValueType())) {
|
||||
cerr << "Match failed, can't handle floats yet!\n";
|
||||
cerr << "Match failed, cannot handle this yet!\n";
|
||||
InOperandVal.Val->dump();
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user