forked from OSchip/llvm-project
parent
0cfdac078e
commit
d13d13496f
|
@ -101,13 +101,14 @@ void llvm::LowerARMMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI,
|
|||
case MachineOperand::MO_BlockAddress:
|
||||
MCOp = GetSymbolRef(MO,AP.GetBlockAddressSymbol(MO.getBlockAddress()),AP);
|
||||
break;
|
||||
case MachineOperand::MO_FPImmediate:
|
||||
case MachineOperand::MO_FPImmediate: {
|
||||
APFloat Val = MO.getFPImm()->getValueAPF();
|
||||
bool ignored;
|
||||
Val.convert(APFloat::IEEEdouble, APFloat::rmTowardZero, &ignored);
|
||||
MCOp = MCOperand::CreateFPImm(Val.convertToDouble());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
OutMI.addOperand(MCOp);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue