From ad156fb6af9f58c35357405b0ecd83a60185ed84 Mon Sep 17 00:00:00 2001 From: Alex Lorenz Date: Fri, 31 Jul 2015 20:49:21 +0000 Subject: MIR Serialization: Serialize the floating point immediate machine operands. Reviewers: Duncan P. N. Exon Smith llvm-svn: 243780 --- llvm/lib/CodeGen/MIRPrinter.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp') diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp index f34cef7bcb4..664a0f532e9 100644 --- a/llvm/lib/CodeGen/MIRPrinter.cpp +++ b/llvm/lib/CodeGen/MIRPrinter.cpp @@ -513,6 +513,9 @@ void MIPrinter::print(const MachineOperand &Op, const TargetRegisterInfo *TRI) { case MachineOperand::MO_Immediate: OS << Op.getImm(); break; + case MachineOperand::MO_FPImmediate: + Op.getFPImm()->printAsOperand(OS, /*PrintType=*/true, MST); + break; case MachineOperand::MO_MachineBasicBlock: printMBBReference(*Op.getMBB()); break; -- cgit v1.2.3