AArch64: Better codegen for loading from __fp16.
authorJim Grosbach <grosbach@apple.com>
Tue, 8 Jul 2014 23:28:48 +0000 (23:28 +0000)
committerJim Grosbach <grosbach@apple.com>
Tue, 8 Jul 2014 23:28:48 +0000 (23:28 +0000)
commit05bb7c5045c93b481e534b16f79801d62effd36a
treeba30f9eab6b172c4ece67c3bcd9ef054f7467156
parent04fe99019022707c605ad0ab96dbd50bcad4364d
AArch64: Better codegen for loading from __fp16.

Loading will generally extend to an f32 or an 64, so make sure
to match those patterns directly to load into the FPR16 register
class directly rather than going through the integer GPRs.

This also eliminates an extra step in the convert-to-f64 path
which was first converting to f32 and then to f64 from there.

rdar://17594379

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212573 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64InstrInfo.td
test/CodeGen/AArch64/f16-convert.ll [new file with mode: 0644]