Fix printing of f16 machine operands
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 5 Feb 2016 00:50:18 +0000 (00:50 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 5 Feb 2016 00:50:18 +0000 (00:50 +0000)
commit5923973fe2c2c80cd11e67b34ba1fae03f87a9b0
tree6e25aa796b0c2d64261be83c1872bf19de3d3a42
parent312b34fc3015b812017220d51a2013ce6044807c
Fix printing of f16 machine operands

Only single and double FP immediates are correctly printed by
MachineInstr::print() during debug output. Half float type goes to
APFloat::convertToDouble() and hits assertion it is not a double
semantics. This diff prints half machine operands correctly.

This cannot currently be hit by any in-tree target.

Patch by Stanislav Mekhanoshin

llvm-svn: 259857
llvm/lib/CodeGen/MachineInstr.cpp