summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2017-03-20 16:52:08 +0000
committerTim Northover <tnorthover@apple.com>2017-03-20 16:52:08 +0000
commit89268b183ffe58c1ca5b40857afaf5727334f4ee (patch)
tree68a8a46ec946e4cd73ac15f11716b33012774d9a /llvm/lib/CodeGen/MachineInstr.cpp
parent14534eb8a285f6d15b8c6e408bea2379988864ab (diff)
downloadbcm5719-llvm-89268b183ffe58c1ca5b40857afaf5727334f4ee.tar.gz
bcm5719-llvm-89268b183ffe58c1ca5b40857afaf5727334f4ee.zip
GlobalISel: allow quad-precision values to be dumped.
Otherwise the fallback path fails with an assertion on AAPCS AArch64 targets, when "long double" is encountered. llvm-svn: 298273
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index 7039aecc219..c0a8b95ed8a 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -420,6 +420,11 @@ void MachineOperand::print(raw_ostream &OS, ModuleSlotTracker &MST,
bool Unused;
APF.convert(APFloat::IEEEsingle(), APFloat::rmNearestTiesToEven, &Unused);
OS << "half " << APF.convertToFloat();
+ } else if (getFPImm()->getType()->isFP128Ty()) {
+ APFloat APF = getFPImm()->getValueAPF();
+ SmallString<16> Str;
+ getFPImm()->getValueAPF().toString(Str);
+ OS << "quad " << Str;
} else {
OS << getFPImm()->getValueAPF().convertToDouble();
}
OpenPOWER on IntegriCloud