llvm-6502/lib
Tim Northover 3e61ccdded CodeGen: extend f16 conversions to permit types > float.
This makes the two intrinsics @llvm.convert.from.f16 and
@llvm.convert.to.f16 accept types other than simple "float". This is
only strictly needed for the truncate operation, since otherwise
double rounding occurs and there's no way to represent the strict IEEE
conversion. However, for symmetry we allow larger types in the extend
too.

During legalization, we can expand an "fp16_to_double" operation into
two extends for convenience, but abort when the truncate isn't legal. A new
libcall is probably needed here.

Even after this commit, various target tweaks are needed to actually use the
extended intrinsics. I've put these into separate commits for clarity, so there
are no actual tests of f64 conversion here.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213248 91177308-0d34-0410-b5e6-96231b3b80d8
2014-07-17 10:51:23 +00:00
..
Analysis Move ashr optimization from InstCombineShift to InstSimplify. 2014-07-17 06:28:15 +00:00
AsmParser
Bitcode
CodeGen CodeGen: extend f16 conversions to permit types > float. 2014-07-17 10:51:23 +00:00
DebugInfo
ExecutionEngine
IR
IRReader
LineEditor
Linker
LTO
MC
Object
Option
ProfileData
Support Fix the prefix for arm64 triple 2014-07-17 09:43:27 +00:00
TableGen
Target CodeGen: extend f16 conversions to permit types > float. 2014-07-17 10:51:23 +00:00
Transforms [msan] Avoid redundant origin stores. 2014-07-17 09:10:37 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile