mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-20 14:29:27 +00:00
Make sure to promote single precision floats to double before extracting them
from the APFloat. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114096 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
34e3d0cfe5
commit
1d51c41a45
@ -157,8 +157,10 @@ void ARMMCInstLower::Lower(const MachineInstr *MI, MCInst &OutMI) const {
|
|||||||
MO.getBlockAddress()));
|
MO.getBlockAddress()));
|
||||||
break;
|
break;
|
||||||
case MachineOperand::MO_FPImmediate:
|
case MachineOperand::MO_FPImmediate:
|
||||||
MCOp =
|
APFloat Val = MO.getFPImm()->getValueAPF();
|
||||||
MCOperand::CreateFPImm(MO.getFPImm()->getValueAPF().convertToDouble());
|
bool ignored;
|
||||||
|
Val.convert(APFloat::IEEEdouble, APFloat::rmTowardZero, &ignored);
|
||||||
|
MCOp = MCOperand::CreateFPImm(Val.convertToDouble());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user