X86: support double extension of f16 type.
authorTim Northover <tnorthover@apple.com>
Thu, 17 Jul 2014 11:04:04 +0000 (11:04 +0000)
committerTim Northover <tnorthover@apple.com>
Thu, 17 Jul 2014 11:04:04 +0000 (11:04 +0000)
commited05086d61a6ef6c375d9d7e7e7f5a94b03a5b58
tree02601a9ac5745f5f29e2756c476741b311cb5121
parent3e61ccdded8fbed8f80be36b65f78b909fe9d9d8
X86: support double extension of f16 type.

x86 has no native ability to extend an f16 to f64, but the same result
is obtained if we expand it into two separate extensions: f16 -> f32
-> f64.

Unfortunately the same is not true for truncate, so that still results
in a compilation failure.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213251 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/cvt16.ll