[X86][FastIsel] Teach how to select float-half conversion intrinsics.
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Fri, 20 Feb 2015 19:37:14 +0000 (19:37 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Fri, 20 Feb 2015 19:37:14 +0000 (19:37 +0000)
commit7035178aebc91d0ed99759919865d6745ac052e2
tree3e7e58561c265dc9c71c06d621b8ae9f48462d9d
parentf20413245a8667e105a8850ed68165d8ed13bde3
[X86][FastIsel] Teach how to select float-half conversion intrinsics.

This patch teaches X86FastISel how to select intrinsic 'convert_from_fp16' and
intrinsic 'convert_to_fp16'.
If the target has F16C, we can select VCVTPS2PHrr for a float-half conversion,
and VCVTPH2PSrr for a half-float conversion.

Differential Revision: http://reviews.llvm.org/D7673

llvm-svn: 230043
llvm/lib/Target/X86/X86FastISel.cpp
llvm/test/CodeGen/X86/fast-isel-double-half-convertion.ll [new file with mode: 0644]
llvm/test/CodeGen/X86/fast-isel-float-half-convertion.ll [new file with mode: 0644]