CodeGen: generate single libcall for fptrunc -> f16 operations.
authorTim Northover <tnorthover@apple.com>
Thu, 17 Jul 2014 11:12:12 +0000 (11:12 +0000)
committerTim Northover <tnorthover@apple.com>
Thu, 17 Jul 2014 11:12:12 +0000 (11:12 +0000)
commit6c701b9aca2890b94626e3673237442d67010c6f
tree4274d27f1257a411c62c6be26a5f5fb7d50e3127
parented05086d61a6ef6c375d9d7e7e7f5a94b03a5b58
CodeGen: generate single libcall for fptrunc -> f16 operations.

Previously we asserted on this code. Currently compiler-rt doesn't
actually implement any of these new libcalls, but external help is
pretty much the only viable option for LLVM.

I've followed the much more generic "__truncST2" naming, as opposed to
the odd name for f32 -> f16 truncation. This can obviously be changed
later, or overridden by any targets that need to.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213252 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/RuntimeLibcalls.h
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
lib/CodeGen/SelectionDAG/LegalizeTypes.h
lib/CodeGen/TargetLoweringBase.cpp
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/cvt16.ll